average only if month is over

MDuff

Well-known Member
Joined
Dec 29, 2002
Messages
529
Office Version
  1. 365
Platform
  1. Windows
Hi I have data that is complied by month however I would like to only average the months that are over.

Fore example 8/1/2017 has not passed and I do not have full data for it so I would like it excluded from the average.

thanks a lot in advance for any help!!!


1/1/2017 13.61 %
2/1/2017 11.12 %
3/1/2017 11.49 %
4/1/2017 10.36 %
5/1/2017 10.82 %
6/1/2017 10.95 %
7/1/2017 10.31 %
8/1/2017 2.35 %
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try
Code:
=IF(TODAY()>EOMONTH(A1,0),your average formula here,"")
 
Upvote 0
Try:


Excel 2013/2016
ABCD
11/1/201713.61%11.24%
22/1/201711.12%
33/1/201711.49%
44/1/201710.36%
55/1/201710.82%
66/1/201710.95%
77/1/201710.31%
88/1/20172.35%
Sheet1
Cell Formulas
RangeFormula
D1{=AVERAGE(IF(MONTH(A1:A8)TODAY()),B1:B8))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Hi, here is another option you could try:


Excel 2013/2016
ABCD
101/01/201713.61%11.24%
202/01/201711.12%
303/01/201711.49%
404/01/201710.36%
505/01/201710.82%
606/01/201710.95%
707/01/201710.31%
808/01/20172.35%
Data 2 (2)
Cell Formulas
RangeFormula
D1=AVERAGEIFS(B:B,A:A,"<" & EOMONTH(TODAY(),-1)+1)
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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