Calculating balances across multiple accounts

muhleebbin

Active Member
Joined
Sep 30, 2017
Messages
252
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Could someone a lot smarter than me help me figure out this puzzle of calculating the running balance of our accounts?

So columns A-K are the current columns available on a workbook I have but I'd like to be able to incorporate column L, but cannot seem to figure out the best method to tackle this. Basically i'd like the first instance of an account to take the beginning balance and add/subtract based off the credit/debit. Each subsequent instance of an account number would then look for the last entry and add/subtract from there.

Book1
ABCDEFGHIJKLMNOPQRS
1MatchedAccount NameAccount NumberAs of DateData TypeBAI Code Description Debit Credit Customer ReferenceTextNotes Balance Account Beginning balance
2Test117/1/2021Detail CreditsPreauthorized ACH Credit1.00101.001100.00
3Test227/1/2021Detail CreditsPreauthorized ACH Credit2.00202.002200.00
4Test227/1/2021Detail CreditsPreauthorized ACH Credit2.00204.003300.00
5Test227/1/2021Detail DebitsPreauthorized ACH Debit2.00202.004400.00
6Test337/1/2021Detail CreditsPreauthorized ACH Credit3.00303.005500.00
7Test337/1/2021Detail DebitsPreauthorized ACH Debit3.00300.006600.00
8Test447/1/2021Detail CreditsPreauthorized ACH Credit4.00404.00
9Test557/1/2021Detail CreditsPreauthorized ACH Credit5.00505.00
10Test557/1/2021Detail DebitsChecks Paid Debit5.00500.00
11Test667/1/2021Detail CreditsPreauthorized ACH Credit6.00606.00
12Test117/2/2021Detail CreditsPreauthorized ACH Credit1.00102.00
13Test117/2/2021Detail DebitsPreauthorized ACH Debit1.00101.00
14Test117/2/2021Detail DebitsPreauthorized ACH Debit1.00100.00
15Test227/2/2021Detail CreditsPreauthorized ACH Credit2.00204.00
16Test227/2/2021Detail DebitsPreauthorized ACH Debit2.00202.00
17Test227/2/2021Detail DebitsChecks Paid Debit2.00200.00
18Test337/2/2021Detail CreditsPreauthorized ACH Credit3.00303.00
19Test337/2/2021Detail DebitsPreauthorized ACH Debit3.00300.00
20Test337/2/2021Detail DebitsPreauthorized ACH Debit3.00297.00
21Test337/2/2021Detail DebitsPreauthorized ACH Debit3.00294.00
22Test337/2/2021Detail DebitsPreauthorized ACH Debit3.00291.00
23Test447/2/2021Detail CreditsPreauthorized ACH Credit4.00408.00
24Test447/2/2021Detail DebitsPreauthorized ACH Debit4.00404.00
25Test447/2/2021Detail DebitsPreauthorized ACH Debit4.00400.00
26Test447/2/2021Detail DebitsPreauthorized ACH Debit4.00396.00
Sheet1


Thanks in advance for your help here!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This will do it. It's not looking at the previous value. Rather it looks up the opening and then subtracts and adds the applicable entries for each account. For more Col L entries it can just be dragged down.
calculating-balances-across-multiple-accounts.1177286.xlsx
ABCDEFGHIJKLMNOPQRS
1MatchedAccount NameAccount NumberAs of DateData TypeBAI Code Description Debit Credit Customer ReferenceTextNotes Balance Account Beginning balance
2Test117/01/2021Detail CreditsPreauthorized ACH Credit11011100
3Test227/01/2021Detail CreditsPreauthorized ACH Credit22022200
4Test227/01/2021Detail CreditsPreauthorized ACH Credit22043300
5Test227/01/2021Detail DebitsPreauthorized ACH Debit22024400
6Test337/01/2021Detail CreditsPreauthorized ACH Credit33035500
7Test337/01/2021Detail DebitsPreauthorized ACH Debit33006600
8Test447/01/2021Detail CreditsPreauthorized ACH Credit4404
9Test557/01/2021Detail CreditsPreauthorized ACH Credit5505
10Test557/01/2021Detail DebitsChecks Paid Debit5500
11Test667/01/2021Detail CreditsPreauthorized ACH Credit6606
12Test117/02/2021Detail CreditsPreauthorized ACH Credit1102
13Test117/02/2021Detail DebitsPreauthorized ACH Debit1101
14Test117/02/2021Detail DebitsPreauthorized ACH Debit1100
15Test227/02/2021Detail CreditsPreauthorized ACH Credit2204
16Test227/02/2021Detail DebitsPreauthorized ACH Debit2202
17Test227/02/2021Detail DebitsChecks Paid Debit2200
18Test337/02/2021Detail CreditsPreauthorized ACH Credit3303
19Test337/02/2021Detail DebitsPreauthorized ACH Debit3300
20Test337/02/2021Detail DebitsPreauthorized ACH Debit3297
21Test337/02/2021Detail DebitsPreauthorized ACH Debit3294
22Test337/02/2021Detail DebitsPreauthorized ACH Debit3291
23Test447/02/2021Detail CreditsPreauthorized ACH Credit4408
24Test447/02/2021Detail DebitsPreauthorized ACH Debit4404
25Test447/02/2021Detail DebitsPreauthorized ACH Debit4400
26Test447/02/2021Detail DebitsPreauthorized ACH Debit4396
Sheet1
Cell Formulas
RangeFormula
L2:L26L2=VLOOKUP(C2,R:S,2,FALSE)-SUMIFS($C$1:$C2,$G$1:$G2,C2)+SUMIFS($C$1:$C2,$H$1:$H2,C2)
 
Upvote 0
Solution
Kenny,

Thank you soooo much!! I actually was on the right track except I couldn't figure out for the life of me to use C2 as the criteria :ROFLMAO:

It definitely is a case of the Friday's ugghhhh
 
Upvote 0

Forum statistics

Threads
1,223,743
Messages
6,174,244
Members
452,553
Latest member
red83

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