ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Basic Balance Sheet Problem (https://www.excelbanter.com/excel-discussion-misc-queries/268499-basic-balance-sheet-problem.html)

capt.kash

Basic Balance Sheet Problem
 
I have a basic balance sheet. Column A is Credit, Column B is Debit and Column C is Balance. I use formula after first credit line as =C1+A2-B2. The problem is if the balance for e.g is $4000.00 then it will keep repeating the same balance until anything is entered in column A or Column B next to column C. Is there a formula that if Column A or Column B are empty(blank) then column C will remain empty(blank) and the last balance stops at the line when last credit or debit is entered.

capt.kash

I figured it Out.....=IF(AND(ISBLANK(A2),ISBLANK(B2)),"",C1+A2-B2)

wickedchew

Quote:

Originally Posted by capt.kash (Post 962553)
I figured it Out.....=IF(AND(ISBLANK(A2),ISBLANK(B2)),"",C1+A2-B2)

If you're going to use the AND function, remember that both statements should be TRUE or else it would return FALSE.

The AND operand function works like MULTIPLICATION.

I suggest you use the OR function.
=IF(OR(ISBLANK(A2),ISBLANK(B2)),"",C1+A2-B2)

The OR operand function works like ADDITION.


All times are GMT +1. The time now is 02:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com