Checkbook balances only what is posted

J

jamesrice174

I'm making a checkbook (shown below) in excel and I have a poste
column. If the posted column has a "Y" in it then that row has bee
posted and I either add the deposit or subtract the withdrawl. I ca
get the SUM statement to work to take the previous balance and add th
deposit AND subtract the withdrawl with the following line,
=SUM($F2,C3,-D3).
I can get the line =SUM(IF(E4:E13="Y",C4,D4)) to do calculations if th
posted coulmn has a "Y" in it but I can't get it do do all of i
together
C D E F
1 DEPOSIT WITHDRAWAL POSTED BALANCE
2 200.00 Y 200.00
3 10.00 Y 190.00
4 25.00 190.00
5 50.00 Y 140.00

Any ideas how to do this
 
P

PeterAtherton

C D E F
1 DEPOSIT WITHDRAWAL POSTED BALANCE
2 200.00 Y 200.00
3 10.00 Y 190.00
4 25.00 190.00
5 50.00 Y 140.00

Any ideas how to do this?

JAmes

One way, with deposit in B, withdrawal in C and Posted in D

In E2 type =SUMIF(D2,"Y",B2)
In E3 type =SUMIF(D3,"Y",B3)-SUMIF(D3,"Y",C3)+E2

Regards
Peter

(e-mail address removed)
 
P

PeterAtherton

C D E F
1 DEPOSIT WITHDRAWAL POSTED BALANCE
2 200.00 Y 200.00
3 10.00 Y 190.00
4 25.00 190.00
5 50.00 Y 140.00

Any ideas how to do this?

JAmes

One way, with deposit in B, withdrawal in C and Posted in D

In E2 type =SUMIF(D2,"Y",B2)
In E3 type =SUMIF(D3,"Y",B3)-SUMIF(D3,"Y",C3)+E2

Regards
Peter

(e-mail address removed)
 
S

Sandy Mann

No need for the SUMIF's

In F2 type =IF(COUNT(C2:D2),(E2="Y")*(C2-D2),"")
In F3 type =IF(COUNT(C3:D3),F2+(E3="Y")*(C3-D3),"")

and copy F3 down as far as necessary. This will also give blank cells in
Column F until an entry is made in C or D

HTH

Sandy
 
P

Peter Atherton

-----Original Message-----
No need for the SUMIF's

In F2 type =IF(COUNT(C2:D2),(E2="Y")*(C2-D2),"")
In F3 type =IF(COUNT(C3:D3),F2+(E3="Y")*(C3-D3),"")

and copy F3 down as far as necessary. This will also give blank cells in
Column F until an entry is made in C or D

HTH

Sandy


Nice oneSandy

Peter Atherton
 

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

Top