formula for blank cell

  • Thread starter Thread starter deane1935
  • Start date Start date
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
 
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
 
You're welcome. And yes, the = is very important. It's what makes it a
formula. Otherwise it's just a text string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top