If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Basic query from novice

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-04, 08:14
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
Basic query from novice

Hi all,

I am trying to create my first spreadsheet and have hit a wall.

I am trying to get the balance column to automatically adjust itself after any entries are made in either the credit or debit columns.

Also, if I enter say, £100 in the credit column, I want to avoid having to enter £0 in the debit cell next to it in order for the sum to work.

I would also like to have a clean looking balance column. By that, I mean I do not want the cells in the balance column to show anything until they are actually in use. <<< Did that make sense?


Thanks in advance,

Andy

Last edited by SirTfireball; 02-20-04 at 08:43.
Reply With Quote
  #2 (permalink)  
Old 02-20-04, 10:33
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Welcome to the board!

Put headings in the following cells:

B2 - Credit
C2 - Debit
D2 - Balance

Then in cells B3 and C3 enter 0. In D2 enter the beginning amount

in D3, enter this formula:

=IF(AND(B3=0)*(C3=0),"",D2+C3-B3)

[Edited: forgot about "not showing anything until credit/debit entered, so added the IF statement]

Then copy this cell down column D as far as you want to go. Any change made to credit or debit will appear in the resulting balance.

(Adjust formula to reflect how you understand debit/credit.)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 02-20-04 at 10:44.
Reply With Quote
  #3 (permalink)  
Old 02-20-04, 10:54
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
Thanks for the welcome.

I'm afraid your kind attempt to help me has flown straight over my head. I am quite the moron don't ya know )

I am attempting to add a link to the sheet. Hope it works.
Attached Files
File Type: zip balance sheet11.zip (6.9 KB, 54 views)
Reply With Quote
  #4 (permalink)  
Old 02-20-04, 11:28
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Not sure what happened. I added a sheet to your file, and put in the formula that works fine. (I put the formula in column H for you to see how column G is set up)
Attached Files
File Type: zip test.zip (6.3 KB, 61 views)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #5 (permalink)  
Old 02-20-04, 11:56
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
I have added a new sheet which shows how I want it to look. I add to the credit/debit columns and the balance column auto adjusts.

I am truly sorry if I am being very dense, unclear or both Your explanation goes way over my head.

Patiently yours,

Dumbo
Attached Files
File Type: zip balancesheet2.zip (6.9 KB, 58 views)
Reply With Quote
  #6 (permalink)  
Old 02-20-04, 12:30
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
BTW, no need to apologize. We work together on this.

Okay, I further looked at your sheet. Columns E and F are not "blank" even though it looks that way. There is a space in every cell in those columns. Thus, my formulas would not detect that.

So go into columns E and F starting at row 4, and clear contents (select the cells, right-click and choose "Clear Contents").

Copy this formula into G5:

=IF(AND(E5="")*(F5=""),"",G4-F5+E5)

Copy this down column G.

Be sure that when you copy from the message board that there is no extra space after that closing parenthesis.

If you need more help, post back.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #7 (permalink)  
Old 02-20-04, 12:33
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
Thanks heaps
Reply With Quote
  #8 (permalink)  
Old 02-20-04, 12:37
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
Quote:
Originally posted by SirTfireball
Thanks heaps
I have now got this far......

but I would like to do away with having to enter £0 rather than just leave the cell empty and I would prefer not to have all those cells showing #VALUE!. Can this be done?
Attached Files
File Type: zip balance sheet11.zip (8.6 KB, 59 views)
Reply With Quote
  #9 (permalink)  
Old 02-20-04, 12:41
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Using that latest formula should get rid of the #VALUE! in the cells. That is the purpose of the IF statement. If both E5 and F5 are empty, then it will enter "" (which means it leaves it blank).
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #10 (permalink)  
Old 02-20-04, 12:46
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Okay, here is the updated one. To get the format the same for all of Column E, F, and G. Select G4, then click the Format Painter button on the toolbar (looks like a paintbrush. Then select all the cells you want the same way (even if they don't have any formulas or numbers).

Now, check this attachment.
Attached Files
File Type: zip balancesheet11rev1.zip (5.2 KB, 398 views)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #11 (permalink)  
Old 02-20-04, 12:52
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Welcome to the Board!

See: http://office.microsoft.com/template...ister&Scope=TC for a pre-packaged Checkbook Register from Microsoft.

Hope that helps,

Smitty

(Heya Shades!)
Reply With Quote
  #12 (permalink)  
Old 02-20-04, 12:52
SirTfireball SirTfireball is offline
Registered User
 
Join Date: Feb 2004
Location: London UK
Posts: 8
Thank you, thank you, thank you.......

You've made an old man very happy and I never felt a thing
Reply With Quote
  #13 (permalink)  
Old 02-20-04, 13:07
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Glad it worked. And thanks for posting back.

Hey, Smitty. It's been hectic, so I've been scarce around the boards.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On