Simple bank account WB

BravoBravoAu

Board Regular
Joined
Nov 8, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
Hi guys - I manage the work coffee club and each fortnight need to balance the bank account and petty cash. I'm hoping a simple WB will help me and others with transparency and simplicity.

I currently have a WB with two WSs: data and balance.

DATA:
ABCDEF
1DATECREDITDEBITACCOUNTBANK ACCOUNT BALANCEPETTY CASH BALANCE
21/7/18$1000$200
36/7/18$10bank account
46/7/18$5petty cash

<tbody>
</tbody>

Column D is a list of 'bank account' or 'petty cash' (for this argument, row 2 is showing current balance)
  • based upon the $10 bank account credit, I want in E3 to show $1000 plus $10 therefore $1010.
  • based upon the $5 petty cash debit, I want F4 to show $200 less $5 therefore $195.

Obviously a credit or a debit impacts positively or negatively on the balance of whichever account balance which is confusing me, plus it moves down the worksheet with each respective entry.

Lastly, I hope, the BALANCE:
AB
1ACCOUNTAMOUNT
2Bank account
3Petty Cash
4TOTAL

<tbody>
</tbody>

I want B2 to display the current bank account balance ('DATA!E') and B3 to display the current petty cash balance ('DATA!F'). I'm not sure how to do this as the balance moves down the DATA worksheet.

I'm confident B4 will just be =sum(B2:B3).

Thanks as always for your assistance, legends.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Like this ??

Excel 2007
ABCDEFG
1DATECREDITDEBITACCOUNTBANK ACCOUNT BALANCEPETTY CASH BALANCE
21/07/2018$1,000.00$ 200.00
36/07/2018$10bank account$1,010.00$ 200.00
46/07/2018$5petty cash$1,010.00$ 195.00
5
Sheet2
Cell Formulas
RangeFormula
E3=IF(B3>0,E2+B3,E2)
E4=IF(B4>0,E3+B4,E3)
F3=IF(C3>0,F2-C3,F2)
F4=IF(C4>0,F3-C4,F3)
 
Last edited:
Upvote 0
Hi,

A couple of different ways.
If the Headers in E1 and F1 can be changed to match D3 and D4, the formulas can be shorter.


Book1
ABCDEFGHI
1DATECREDITDEBITACCOUNTBANK ACCOUNT BALANCEPETTY CASH BALANCE
21/7/2018$1,000.00$200.00
36/7/2018$10bank account$1,010.00 1010 
46/7/2018$5petty cash$195.00195
5
6
7
8ACCOUNTAMOUNT
9Bank account$1,010.00
10Petty Cash$195.00
11TOTAL$1,205.00
Sheet230
Cell Formulas
RangeFormula
E3=IF(D3="bank account",LOOKUP(9.99999999999999E+307,E$2:E2)+B3-C3,"")
F3=IF(D3="petty cash",LOOKUP(9.99999999999999E+307,F$2:F2)+B3-C3,"")
H3=IF(D3="bank account",E$2+SUMIF(D$3:D3,"bank account",B$3:B3)-SUMIF(D$3:D3,"bank account",C$3:C3),"")
I3=IF(D3="petty cash",F$2+SUMIF(D$3:D3,"petty cash",B$3:B3)-SUMIF(D$3:D3,"petty cash",C$3:C3),"")
B9=LOOKUP(9.99999999999999E+307,E2:E6)
B10=LOOKUP(9.99999999999999E+307,F2:F6)
B11=B9+B10


Use E3 and F3 formulas, or opt for H3 and I3 formulas.

Change/adjust cell references/range and Sheet Name according to your data.
 
Upvote 0
Sorry....and for the last bit

Excel 2007
AB
5
6
7ACCOUNTAMOUNT
8Bank account$ 1,010.00
9Petty Cash$ 195.00
10TOTAL$ 1,205.00
11
Sheet2
Cell Formulas
RangeFormula
B8=LOOKUP(2,1/(1-ISBLANK(E:E)),E:E)
B9=LOOKUP(2,1/(1-ISBLANK(F:F)),F:F)
B10=B9+B8
 
Last edited:
Upvote 0
Here're the same formulas as my Post # 3, with the Headers in E1 and F1 changed:


Book1
ABCDEFGHI
1DATECREDITDEBITACCOUNTBANK ACCOUNTPETTY CASH
21/7/2018$1,000.00$200.00
36/7/2018$10bank account$1,010.001010
46/7/2018$5petty cash$195.00195
5
6
7
8ACCOUNTAMOUNT
9Bank account$1,010.00
10Petty Cash$195.00
11TOTAL$1,205.00
Sheet230 (2)
Cell Formulas
RangeFormula
E3=IF($D3=E$1,LOOKUP(9.99999999999999E+307,E$2:E2)+$B3-$C3,"")
H3=IF($D3=E$1,E$2+SUMIF($D$3:$D3,E$1,$B$3:$B3)-SUMIF($D$3:$D3,E$1,$C$3:$C3),"")
B9=LOOKUP(9.99999999999999E+307,E2:E6)
B10=LOOKUP(9.99999999999999E+307,F2:F6)
B11=B9+B10


E3 or H3 formula copied down and across to Column F
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top