mark hansen
Well-known Member
- Joined
- Mar 6, 2006
- Messages
- 534
- Office Version
- 2016
- Platform
- Windows
A few days ago I found on the board the AVERAGEIFS function and I’ve been able to get to work for some things. When I add additional criteria it doesn’t work. We are on Excel 2007.
Here is was I have so far.
=IFERROR(AVERAGEIFS(Data_Input!$X$6:$X$1000000,Data_Input!$P$6:$P$1000000,"=X",Data_Input!$C$6:$C$1000000,C18),"No Data")
In the Data input tab I have a table containing a few key columns:
Date (formatted to MMM-YY) (Column B )
Person (Column C)
Section (Column D)
A “flag” to indicate the scores also count against a certain problem
3 different scores (Columns X, Y, Z)
The formula it’s self could probably be better, I assume I don’t need to do down to row 1,000,000 but as the table will be building (doing down) over time, I didn’t want to need to change the formulas. I put it inside the IFERROR function to include the “No data” of the person doesn’t have any scores within the date range.
On a Summary tab, I have the person’s name listed and the AGERAGEIFS formulas to average the score for the that person. This works well.
I need to only calculate the average scores for a certain date range. I include the date range, a beginning and ending date (also formatted to MMM-YY). When I included the additional criteria of > beginning date (summary sheet E6) and < ending date summary Sheet E7, the formula doesn’t work. My intent is, as the data is entered over time, My summary sheet will only look at the date range reflected in the beginning and ending dates and average the scores within that date.
Do I have to treat the date range criteria differently than the person’s name, or the section or the problem flag? Do I have to use square brackets (an array formula, I don’t know how to do that.)
Thanks for any help.
Mark
Here is was I have so far.
=IFERROR(AVERAGEIFS(Data_Input!$X$6:$X$1000000,Data_Input!$P$6:$P$1000000,"=X",Data_Input!$C$6:$C$1000000,C18),"No Data")
In the Data input tab I have a table containing a few key columns:
Date (formatted to MMM-YY) (Column B )
Person (Column C)
Section (Column D)
A “flag” to indicate the scores also count against a certain problem
3 different scores (Columns X, Y, Z)
The formula it’s self could probably be better, I assume I don’t need to do down to row 1,000,000 but as the table will be building (doing down) over time, I didn’t want to need to change the formulas. I put it inside the IFERROR function to include the “No data” of the person doesn’t have any scores within the date range.
On a Summary tab, I have the person’s name listed and the AGERAGEIFS formulas to average the score for the that person. This works well.
I need to only calculate the average scores for a certain date range. I include the date range, a beginning and ending date (also formatted to MMM-YY). When I included the additional criteria of > beginning date (summary sheet E6) and < ending date summary Sheet E7, the formula doesn’t work. My intent is, as the data is entered over time, My summary sheet will only look at the date range reflected in the beginning and ending dates and average the scores within that date.
Do I have to treat the date range criteria differently than the person’s name, or the section or the problem flag? Do I have to use square brackets (an array formula, I don’t know how to do that.)
Thanks for any help.
Mark