Average the last bank balance of each day

JamesonMH

Board Regular
Joined
Apr 17, 2018
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I'm trying to calculate an average of the final (last) bank balance for each day. There are many bank transaction lines daily (with a corresponding updated balance). Because of the volume causing so many ending balances in a single day, it skews the average that is most useful - which is the balance at the very end of the day (I can explain more of my reasoning if required).

Again, I only want the final (last) bank balance for each day. Meaning, there could be 100 lines of transactions for today, but I just need the very final/last balance for today in my AVERAGE calculation.

With this example bank statement, I would want to average only the numbers that are bolded, since they are the final balance for each day, reflecting all the activity for that day.

Any ideas?

Thanks!
James

DateDescriptionDebitCreditBalance
11/05/2023xyz6,0006,000
11/05/2023xyz505,950
11/06/2023xyz1005,850
11/06/2023xyz10,00015,850
11/07/2023xyz3,00012,850
11/08/2023xyz4012,890
11/08/2023xyz25,00037,890
11/08/2023xyz80,000117,890
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Maybe this will help.
Using official Excel Tables for bank reconciliations makes things really efficient. You can move rows up and down or insert or delete rows easily and still have the balances all work out.

MrExcel posts20.xlsx
FGHIJKL
8TransactionDateDescriptionDebitCreditBalanceDayEndBal
9111/5/2023xyz6,000.006,000.00 
10211/5/2023xyz50.005,950.005,950.00
11311/6/2023xyz100.005,850.00 
12411/6/2023xyz10,000.0015,850.0015,850.00
13511/7/2023xyz3,000.0012,850.0012,850.00
14611/8/2023xyz40.0012,890.00 
15711/8/2023xyz25,000.0037,890.00 
16811/8/2023xyz80,000.00117,890.00117,890.00
17Average38,135.00
Sheet32
Cell Formulas
RangeFormula
K9:K16K9=N(OFFSET([@Balance],-1,0))-[@Debit]+[@Credit]
L9:L16L9=IF([@Transaction]=MAX(FILTER([Transaction],[Date]=[@Date])),[@Balance],"")
L17L17=SUBTOTAL(101,[DayEndBal])
 
Upvote 0
Try This, If there’s any unclear information please let me know, thanks

Used Formula :
=INDEX($F$2:$F$9,MATCH(H2:H5,B2:B9,1)) *column " I2 "
=UNIQUE(B2:B9) *COLUMN " H2 "

1699584592587.png
 
Upvote 0
or try this if u want to average that data

in H5
=AVERAGE(IFERROR(INDEX($F$2:$F$100,IFERROR(MATCH(UNIQUE(B2:B100),B2:B100,1),"")),""))

1699586378189.png
 
Upvote 0
Solution
SunnyAlv, this is exactly what I needed. Brilliant solution - thank you!

James
 
Upvote 0
Maybe this will help.
Using official Excel Tables for bank reconciliations makes things really efficient. You can move rows up and down or insert or delete rows easily and still have the balances all work out.

MrExcel posts20.xlsx
FGHIJKL
8TransactionDateDescriptionDebitCreditBalanceDayEndBal
9111/5/2023xyz6,000.006,000.00 
10211/5/2023xyz50.005,950.005,950.00
11311/6/2023xyz100.005,850.00 
12411/6/2023xyz10,000.0015,850.0015,850.00
13511/7/2023xyz3,000.0012,850.0012,850.00
14611/8/2023xyz40.0012,890.00 
15711/8/2023xyz25,000.0037,890.00 
16811/8/2023xyz80,000.00117,890.00117,890.00
17Average38,135.00
Sheet32
Cell Formulas
RangeFormula
K9:K16K9=N(OFFSET([@Balance],-1,0))-[@Debit]+[@Credit]
L9:L16L9=IF([@Transaction]=MAX(FILTER([Transaction],[Date]=[@Date])),[@Balance],"")
L17L17=SUBTOTAL(101,[DayEndBal])
Thanks DRSteele for providing an alternate solution. The only downside for me that this solution brings vs. the other solution is needing to add 2 helper columns. Otherwise, this is great, and I also appreciate you sharing insight on the usefulness of the Excel Tables. I will try to use them more. Cheers!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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