• 582K Members
• 9,018 Online
• 704K Conversations
SOLVED

Highlighted
New Contributor

# Show Blank or Zero

Creating bank balance sheet. On row "69" column F is check or debit amount while G is deposit and H is the result of either the subtraction of F69 from H68 or the addition of G69 to H68. I am using this formula in column H to get the result =IF(F69>0,F69+H68,H68-G69) which works great until I copy it down past the rows that have entries in columns F and G. It repeats the last result in column H that had entries in F and G. I would like  to have it leave H blank or at least enter a zero (0) if there are no entries in F and G. Help would be much appreciated.

5 Replies
Highlighted
Solution

# Re: Show Blank or Zero

I went at it a slightly different way. Here's the formula as I wrote it:

=IF(AND(F69="",G69=""),"",H68-F69+G69)

You can copy this formula down many rows. It basically is saying, if there's no entry in column F or G, then stay blank. If there's an entry in either (or both), then take the running balance from the row above and subtract the debit amount (if any) and add the credit amount (if any).

Highlighted

# Re: Show Blank or Zero

@mathetes I can't believe that you were able to do that. I was totally unaware of that "and" function. Thank you so much. I_B_C

Highlighted

# Re: Show Blank or Zero

Perhaps, you need to calculate a running balance like this:

Highlighted

# Re: Show Blank or Zero

@Twifoo  I am really glad to receive answer of my query of excel expense sheet.   Thank you very much dear for helping me out.  Ayub Khan

Highlighted

# Re: Show Blank or Zero

Thanks for your reply and it works very well to get a running total by copying your formula into the next line each time you enter new data; however, I wanted to copy and embed the formula to be ready each time I entered new data. Your suggestion produces the last number with new data all the way to the bottom. FYI I got this formula from another user which does what I needed.  =IF(AND(F8="",G8=""),"",H7-F8+G8) F and G are the new numbers to be added or subtracted and H is the running balance. This allows me to copy the formula all the way down column H and will only produce a number in H when I have entered a new number in either F or G.  @Ayub-Khan

Related Conversations
Conditional Formatting - Consider Only Value as Lowest Value
Ben Smith in Excel on
2 Replies
teams not showing office documents
Steven Davidson in Microsoft Teams on
2 Replies