I am running out of time on a project and I need to average numbers in a large data set using multiple criteria.
It contains multiple years worth of data and some years do not contain the same row variables. The column headings remain the same.
I want an average, for cell values greater than 0, when the formula matches multiple criteria - two row criteria ranges and one column range (spanning 7 columns).
Here is the formula I tried to use - with the data in Sheet 2. Sheets 1 and 2 are set up with the variable labels in the same columns and rows - except that sheet 2 has far more information that I am trying to average ultimately based on non-duplicated row criteria in sheet1:
=IFERROR(AVERAGEIFS('Sheet2'!$D$3:$J$1973,'Sheet2'!$D$3:$J$1973,">0",'Sheet1'!D$2:J$2,'Shee1'!D$2,'Sheet1'!$B$3:$B$505,'Sheet1'!$B3,'2013'!$C$3:$C$505,'Sheet1'!$C3),0)
It does not appear to be working. Without the IFERROR, I just get #VALUE!. I have no idea why I cannot get the formula to work.
Bookmarks