formula for blank cell

D

deane1935

I have a spreadsheet to keep a running balance. I have a formula
=sum(c2,-a3,+b3). It is copied thru the speadsheet. It works fine
except the last balance is propagated to the end of the sheet. I would
like to be able to check col a and col b and if they are blank, make
col c blank. How can I do this and still keep my running balance when I
enter a debit in col a or a credit in col b? Thanks for any help. Deane
 
C

Cutter

For a running balance in Column C do this

Assume you are putting your first formula in C4 and your carry-over o
starting balance is in C3

=IF(AND(A4="",B4=""),"",C3-A4+B4)

NOTE that you do not put negative numbers in your debit column (A)
otherwise you'll be adding the debits instead of subtracting them
 
C

Cutter

You're welcome. And yes, the = is very important. It's what makes it a
formula. Otherwise it's just a text string.
 
Top