P
paul28
How does one reference a worksheet name in a formula so that it is
dynamic rather than static? What I would like to be able to do is to
have the user of the spreadsheet be able to enter a department name in
a cell on a summary tab and have the spreadsheet automagically grab
the data from that department's data worksheet.
My office uses Excel 2000. I have tried using the indirect function
but I get into trouble because it appears that the indirect function
makes the data reference static. I cannot copy my formula down the
column and have the references change appropriately.
My array formula is this bear:
=IF(ISERROR(AVERAGE(IF(ISNUMBER('2-West Data'!$B6:$AA6)*(MONTH('2-West
Data'!$B$2:$AA$2)=(MONTH($B$5))),('2-West Data'!$B6:$AA6)))),"N/
A",AVERAGE(IF(ISNUMBER('2-West Data'!$B6:$AA6)*(MONTH('2-West Data'!$B
$2:$AA$2)=(MONTH($B$5))),('2-West Data'!$B6:$AA6))))
It actually works quite well for what I want. It checks the
department's data tab (in this case 2-West data) for weekly data that
corresponds to the month entered in cell b5 of the summary sheet. It
then averages the data that exists and returns the result to the
summary sheet.
I would appreciate any and all help in being able to make the sheet
reference dynamic. It would be nicer to have one summary sheet that
can be used for any department versus creating a summary sheet for
every department.
dynamic rather than static? What I would like to be able to do is to
have the user of the spreadsheet be able to enter a department name in
a cell on a summary tab and have the spreadsheet automagically grab
the data from that department's data worksheet.
My office uses Excel 2000. I have tried using the indirect function
but I get into trouble because it appears that the indirect function
makes the data reference static. I cannot copy my formula down the
column and have the references change appropriately.
My array formula is this bear:
=IF(ISERROR(AVERAGE(IF(ISNUMBER('2-West Data'!$B6:$AA6)*(MONTH('2-West
Data'!$B$2:$AA$2)=(MONTH($B$5))),('2-West Data'!$B6:$AA6)))),"N/
A",AVERAGE(IF(ISNUMBER('2-West Data'!$B6:$AA6)*(MONTH('2-West Data'!$B
$2:$AA$2)=(MONTH($B$5))),('2-West Data'!$B6:$AA6))))
It actually works quite well for what I want. It checks the
department's data tab (in this case 2-West data) for weekly data that
corresponds to the month entered in cell b5 of the summary sheet. It
then averages the data that exists and returns the result to the
summary sheet.
I would appreciate any and all help in being able to make the sheet
reference dynamic. It would be nicer to have one summary sheet that
can be used for any department versus creating a summary sheet for
every department.