AVERAGEIFS Date is 30 days prior to N date, but not including N date

actionpark

New Member
Joined
Jan 12, 2019
Messages
1
Hi. Hoping someone can help me figure out this problem that I'm sure is so obvious that I'm going to be embarrassed when I learn the solution. I tried searching the forum and couldn't find a topic that's exactly the same.

I'm using AVERAGEIFS to find the mean PPM for a basketball team for the previous 30 days, not including the date in question.

This is my current formula:

=AVERAGEIFS(AWAY_PPM,AWAY_TEAM,TEAM_NAME,DATES,">"&DATE-30)

The issue I'm running into is that I only want the mean from 30 days BEFORE a date but not including it.

Here's a real life example, using the formula as such:

=AVERAGEIFS(AWAY_PPM,AWAY_TEAM,"PHI",DATES,">1/9/2019"-30)

The white box is my result using the above formula however it is incorrect for my use as I do not want the data FROM from 1/9/2019 in the average, only 30 days BEFORE that.

LvwbVnt
Screen-Shot-2019-01-12-at-9-32-23-PM.png


Thanks in advance for any help!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

You could test the following :

Code:
=AVERAGEIFS(AWAY_PPM,AWAY_TEAM,"PHI",DATES,"<"&"1/9/2019",DATES,">="&"12/10/2018")

and you can replace "12/10/2018" by VALUE("1/9/2019")-30

Hope this will help
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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