CEN7272
Technical User
- Jan 28, 2005
- 20
First off, cell B1 contains the name of a sheet (sheet1) and cell B2 contains the name of another sheet (sheet7). I want to get the average of cell B6 from sheets 1-7.
I can accomplish this by using the following formula:
=SUM('sheet1:sheet7'!B6)
however it may not always be sheets1-7, sometimes it might be 4-8, etc. which is why I need to have the input cells (B1,B2)
I have tried using indirect and Average and I keep getting a #REF error. Here is the formula I've been trying. Am I missing something?
=SUM(INDIRECT("'"&B1&":"&B2&"'!B6"))
It seems to me that this should be the exact copy of a regular sum function. Any ideas?
-Clay
claysdays.blogspot.com
I can accomplish this by using the following formula:
=SUM('sheet1:sheet7'!B6)
however it may not always be sheets1-7, sometimes it might be 4-8, etc. which is why I need to have the input cells (B1,B2)
I have tried using indirect and Average and I keep getting a #REF error. Here is the formula I've been trying. Am I missing something?
=SUM(INDIRECT("'"&B1&":"&B2&"'!B6"))
It seems to me that this should be the exact copy of a regular sum function. Any ideas?
-Clay
claysdays.blogspot.com