
Originally Posted by
daddylonglegs
Hello Kevin,
I'm not sure your formula does what you intend it to do. Firstly the AVERAGE function at the start is redundant because it's only averaging a single value, you can take that out and get the same result.
....also you are effectively "averaging averages" which isn't usually a good idea, by adding all the AVERAGEIFS functions and dividing by 11 you are effectively giving the same "weight" to 100 instances of PG2 as one instance of PG5. If you want an average of column CZ when column D = "2014/10" and column A = any of the other 11 listed values then this formula will do that (and you shouldn't have any problems with #DIV/0! errors)
=IFERROR(SUM(SUMIFS(Sheet2!CZ:CZ,Sheet2!D:D,"2014/10",Sheet2!A:A,{"PG2","PG5","PG7","PG9","assy","osp","#N/A","o/s","0","csp","PG2/PG5"}))/SUM(COUNTIFS(Sheet2!D:D,"2014/10",Sheet2!A:A,{"PG2","PG5","PG7","PG9","assy","osp","#N/A","o/s","0","csp","PG2/PG5"})),0)
Bookmarks