Annual average balance with varying number of periods in list

Ann164

New Member
Joined
Aug 26, 2014
Messages
1
Hi, I have a list of accounts and monthly balances an some averages to calculate below. I was thinking a combination of SUMIF, COUNTIF and SUMPRODUCT may work but I am not sure how to structure. Does anyone have some views based on table below? I would be ok if all accounts had a balance365 days in year or at least 12 months. The data list is currently 16,000 lines for 24 months, I can split into years.
Average monthly balance for the quarter
A1+sum(balance)/nperiods in qtr=1000/3
A2+sum(balance)/nperiods in qtr=(1200+900+750)/3
A3+sum(balance)/nperiods in qtr=(900+1200+1500)/3
A4+sum(balance)/nperiods in qtr=(800+2000)/3
Average monthly balance for the number of periods where balance is > nil and then how many periods was the average based on in the calculation.

A1=number of periods held in qtr+1000/1
A2=number of periods held in qtr=(1200+900+750)/3
A3=number of periods held in qtr=(900+1200+1500)/3
A4=number of periods held in qtr=(800+2000)/2
Average balance over a year regardless of the number of months where balance is > nil
Weighted average of account balance for each over year based on number of months where balance is > nil

Annual average of total of all accounts

<tbody>
</tbody>
DateAccountBalance
20130131 A11000
20130131 A21200
20130131 A3900
20130131 A4800
20121231 A2900
20121231 A31200
20121231 A42000
20121130 A2750
20121130 A31500

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If account number is in col B and balances in col C, you can get the average balances over reported periods with this formula:

=SUMIF($B$2:$B$10,$B2,$C$2:$C$10)/COUNTIF($B$2:$B$10,$B2)
 
Upvote 0

Forum statistics

Threads
1,216,587
Messages
6,131,586
Members
449,657
Latest member
Timber5

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