Jerry in Amsterdam
New Member
- Joined
- May 2, 2006
- Messages
- 47
Hi everyone.
I'm trying to calculate an average of values that are in cell D20 on 21 separate worksheets. Normally the formula =AVERAGE(Worksheet1:Worksheet21!D20) would do, however, there sometimes are #N/A! values in cell D20. This was done on purpose because the vaues are also used for a chart.
What would be a working formula for this? The SUM.IF.../(COUNTA-COUNT.IF) does not seem to work when the cells are on multiple worksheets.
As a bonus I should add that the 21 worksheets are actually 23 worksheets, but two worksheets (no. 7 and no. 12) are not to be included in the average.
I'm trying to calculate an average of values that are in cell D20 on 21 separate worksheets. Normally the formula =AVERAGE(Worksheet1:Worksheet21!D20) would do, however, there sometimes are #N/A! values in cell D20. This was done on purpose because the vaues are also used for a chart.
What would be a working formula for this? The SUM.IF.../(COUNTA-COUNT.IF) does not seem to work when the cells are on multiple worksheets.
As a bonus I should add that the 21 worksheets are actually 23 worksheets, but two worksheets (no. 7 and no. 12) are not to be included in the average.