Forum Discussion
Averaging the same cell across multiple sheets
Nothing wrong with the formula you are trying so far. Since you are handling so many TABs therefore I would like to suggest a better method, is faster also.
- Store Sheet/TAB name in any blank Range,, and use this array (CSE) formula to get Average.
{=AVERAGE(IF(N(INDIRECT("'"&$A$1:$A$12&"'!F2"))>0,N(INDIRECT("'"&$A$1:$A$12&"'!F2"))))}
N.B. Range A1:A12 contents Sheet/TAB name.
Finish formula with Ctrl+Shift+Enter.
- JKPieterseOct 26, 2020Silver Contributor
Rajesh_Sinha Please don't take this personally, but I frown upon using the INDIRECT function, for two reasons:
1. the function is volatile and calculates on any change in your file
2. formulas using INDIRECT are notoriously difficult to understand by others.
- Rajesh_SinhaOct 27, 2020Iron Contributor
JKPieterse ,,
I can understand your concern,, since Ayeziza is trying to access value from 12 different sheets,, in that case the show method is best suitable,, yes is a volatile but here specially reading Sheet Name only so hardly makes any difference,, to avoid this you can assign, a NAME to range A1:A12 (has name of 12 sheets) and use that in Formula like ,,
Replace "'"&$A$1:$A$12&"'!F2" with "'"&TabName&"'!F2"
Here TabName is "Named Range" given to A1:A12 has name of 12 sheets.