Originally Posted by
Domenic
Probably best to do something like this...
1) In the same cell for each sheet, let's say M2, enter the following formula...
=SUM(G2:G739)
2) In the same cell for each sheet, let's say N2, enter the following formula...
=COUNTIF(G2:G739,">0")
3) Then for the average, try...
=SUM('Sheet1:Sheet10'!M2)/SUM('Sheet1:Sheet10'!N2)
Otherwise, for a single formula solution, try the following formula that needs to be confirmed with CONTROL+SHIFT+ENTER...
=AVERAGE(IF(N(OFFSET(INDIRECT("'"&A2:J2&"'!G5:G739"),ROW(INDIRECT("5:739"))-5,0,1))>0,N(OFFSET(INDIRECT("'"&A2:J2&"'!G5:G739"),ROW(INDIRECT("5:739"))-5,0,1))))
...where A2:J2 contains the sheet names. However, this formula is neither efficient nor robust.
Hope this helps!
Bookmarks