ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   dynamic linking worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/157942-dynamic-linking-worksheets.html)

Jake Sale

dynamic linking worksheets
 
Hello,

I know how to pull data from one worksheet to another i.e. ='2660'!$H$2.

But I want to replace the 2660 with a cell ref on the destination worksheet
i.e. ='A2'!$H$2 as this contains the source worksheet's name.

But this does not work.
An ideas how I can do this?

Mike H

dynamic linking worksheets
 
Try this with the sheet name in A1

=INDIRECT(A1&"!H2")

Mike

"Jake Sale" wrote:

Hello,

I know how to pull data from one worksheet to another i.e. ='2660'!$H$2.

But I want to replace the 2660 with a cell ref on the destination worksheet
i.e. ='A2'!$H$2 as this contains the source worksheet's name.

But this does not work.
An ideas how I can do this?


David Biddulph[_2_]

dynamic linking worksheets
 
=INDIRECT("'"&A2&"'!$H$2")
--
David Biddulph

"Jake Sale" <Jake Sale @discussions.microsoft.com wrote in message
...
Hello,

I know how to pull data from one worksheet to another i.e. ='2660'!$H$2.

But I want to replace the 2660 with a cell ref on the destination
worksheet
i.e. ='A2'!$H$2 as this contains the source worksheet's name.

But this does not work.
An ideas how I can do this?





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

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