• 461K Members
• 5,410 Online
• 559K Conversations

New Contributor

# Current Averages of Year to Date

Hi Everybody,

I am trying to find out the average output of my business for the most recent month and year to date.

I was wondering how you might make this sort of rolling average.

Currently I had gone for using the averageifs function but am not too sure about syntax.

If anyone has any advice, that would be greatly appreciated!

Best,

Hugo

5 Replies

# Re: Current Averages of Year to Date

In English, your formula returns the average of total output for weeks ending from tomorrow to 360 days from today. Is that what you want to obtain from your formula?

# Re: 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

Highlighted

# Re: Current Averages of Year to Date

I am actually getting #DIV/0

# Re: Current Averages of Year to Date

Please attach your sample file so that I can personally test the formula and probably discover the reason for the #DIV/0! error.

# Re: Current Averages of Year to Date

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.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies