ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Specifiying the worksheet name in a cell (https://www.excelbanter.com/excel-worksheet-functions/85831-specifiying-worksheet-name-cell.html)

adiss

Specifiying the worksheet name in a cell
 

I have several different xls with multiple worksheets in each I have
written the report that generates the data but I must manually go into
each field and change the worksheet reference each time the sheet
changes.

Could I have an additional colum which specifies which sheet to pull
data from? Then in each function sepecifiying how to create the value
needed the worksheet referance updates too.

Let me know if I need to clarify.


--
adiss
------------------------------------------------------------------------
adiss's Profile: http://www.excelforum.com/member.php...o&userid=33939
View this thread: http://www.excelforum.com/showthread...hreadid=537156


Bob Phillips

Specifiying the worksheet name in a cell
 
You can use

=INDIRECT("'"&A1&"'!H10")

which pulls the value in H10 from the sheet specified in A1.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"adiss" wrote in
message ...

I have several different xls with multiple worksheets in each I have
written the report that generates the data but I must manually go into
each field and change the worksheet reference each time the sheet
changes.

Could I have an additional colum which specifies which sheet to pull
data from? Then in each function sepecifiying how to create the value
needed the worksheet referance updates too.

Let me know if I need to clarify.


--
adiss
------------------------------------------------------------------------
adiss's Profile:

http://www.excelforum.com/member.php...o&userid=33939
View this thread: http://www.excelforum.com/showthread...hreadid=537156




adiss

Specifiying the worksheet name in a cell
 

Thats just what I needed thankyou!


--
adiss
------------------------------------------------------------------------
adiss's Profile: http://www.excelforum.com/member.php...o&userid=33939
View this thread: http://www.excelforum.com/showthread...hreadid=537156



All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com