Yearly Average Balances

supradude

New Member
Joined
Apr 14, 2016
Messages
13
I have a set of balances with dates in them. The dates don't follow a full 365, rather the dates listed generally have the same balance or when the balance changes a new date is listed. For example:

AB
11/3/14$156,358.21
21/27/14$156,358.21
32/13/14$156,358.21
43/17/14$156,358.21
54/11/14$156,358.21
65/15/14$221,356.33
75/20/14$221,356.33
86/6/14$221,356.33
97/15/14$221,356.33
108/15/14$221,356.33
119/11/14$221,356.33
129/17/14$229,897.45
1310/10/14$229,897.45
1411/13/14$229,897.45
1512/12/14$229,897.45

<tbody>
</tbody>

I have several years worth of data similar to the above. I have a pretty graph showing the dates and balances throughout the years, but what I want is the actual average balance for each year. When I do a simple =average(B1:B15), it gives me an average of $201,967.92. I believe this isn't properly accounting for a full 365 days worth of numbers. When I listed out the numbers on a full 365 days in excel, I get a true average for the whole year of $199,974.44.

How do I go about getting the proper average for the year without having to list a balance for every day of the year?

Furthermore, how do I do so for ever year before and after that? I was working with =AVERAGE(IF(YEAR(A1:A15)=2014,B1:B15)). This allows me to change each year in the formula for every year I need (by changing 2014 in the formula to 2015, 2016, etc.), but it is not accounting for the balances between the dates over a full 365 days. Or am I overthinking this?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I really hope this works. I used four helper columns, and the result is not pretty. Copy D2 to G2 downward.

ABCDEFG
1changemax datedaystotal
21/3/201441642$156,358.21 FALSEFALSE-41639
31/27/201441666$156,358.21 FALSEFALSE-41639
42/13/201441683$156,358.21 FALSEFALSE-41639
53/17/201441715$156,358.21 FALSEFALSE-41639
64/11/201441740$156,358.21 TRUE41773134$20,952,000.14
75/15/201441774$221,356.33 FALSEFALSE-41773
85/20/201441779$221,356.33 FALSEFALSE-41773
96/6/201441796$221,356.33 FALSEFALSE-41773
107/15/201441835$221,356.33 FALSEFALSE-41773
118/15/201441866$221,356.33 FALSEFALSE-41773
129/11/201441893$221,356.33 TRUE41898125$27,669,541.25
139/17/201441899$229,897.45 FALSEFALSE-41898
1410/10/201441922$229,897.45 FALSEFALSE-41898
1511/13/201441956$229,897.45 FALSEFALSE-41898
1612/12/201441985$229,897.45 TRUE42004106$24,369,129.70
17
18Average$199,974.44

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet17

Worksheet Formulas
CellFormula
D2=IF(A2=MAX($A$2:$A$16),TRUE,C3<>C2)
E2=IF(D2,IF(A2=MAX($A$2:$A$16),EOMONTH(A2,0),A3-1))
F2=IF(COUNTIF($D1:D$2,TRUE)=0,E2-EOMONTH(MIN($A1:A$2),-1),E2-LARGE($E1:E$2,1))
G2=IF(F2>0,F2*C2,"")
G18=SUM(G2:G16)/(EOMONTH(MAX(A2:A16),0)-(EOMONTH(MIN(A2:A16),-1)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Edit for starting date etc.


Excel 2010
ABC
131-Dec-13
2$156,358.211-Jan-14135
3$221,356.3315-May-14125
4$229,897.4517-Sep-14105
531-Dec-14
6
7$199,772.96
8
1c
Cell Formulas
RangeFormula
C2=B3-B1
C3=B4-B3
C4=B5-B4
B7=SUMPRODUCT(A2:A4,C2:C4)/SUM(C2:C4)
 
Last edited:
Upvote 0
@DRSteele, using you method I was able to get the correct average. Much appreciation.

@Dave Patton, I tried your method and could not reach the average balance you show. Are you intending to build off of DRSteele's formula?
 
Last edited:
Upvote 0
to supradude
The formula shows the weighted average for the data shown.
 
Upvote 0

Excel 2010
ABC
1AmountDays
2$156,358.211-Jan-14134
3$221,356.3315-May-14125
4$229,897.4517-Sep-14106
51-Jan-15
6365
7$199,974.44
8$199,974.44
9
1c
Cell Formulas
RangeFormula
C2=B3-B2
C3=B4-B3
C4=B5-B4
B7=SUMPRODUCT(A2:A4,B3:B5-B2:B4)/(B5-B2)
B8=SUMPRODUCT(A2:A4,C2:C4)/SUM(C2:C4)
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,510
Members
448,967
Latest member
screechyboy79

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