Forum Discussion
Current Averages of Year to Date
Twifoo Thank you for the reply. Yes I would like to get the weekly average for the year
and then also for the month so I assume I would be just changing it to TODAY()-30
Trouble is I'm not actually getting anything
- TwifooJun 18, 2019Silver Contributor
Your formula is trying to return the projected total output for the next 360 days. To return the historical output for the last 1 month before today, your formula should be:
=AVERAGEIFS(Table5[Total Output],
Table5[Week Ending],">="&EDATE(TODAY(),-1),
Table5[Week Ending],"<="&(TODAY())
For the last 1 year before today, your formula should be:
=AVERAGEIFS(Table5[Total Output],
Table5[Week Ending],">="&EDATE(TODAY(),-12),
Table5[Week Ending],"<="&(TODAY())
Your current formula is returning #DIV/0! error probably because there are no dates in the Week Ending column of Table5, which are after today.
- Hugo PuflettJun 18, 2019Copper ContributorI am actually getting #DIV/0
- TwifooJun 18, 2019Silver ContributorPlease attach your sample file so that I can personally test the formula and probably discover the reason for the #DIV/0! error.