Lookup worksheet name in separate workbook

G

Guest

How can I change the 'sheetname' in this formula based on the value (name) in
a cell or can I match the name of the current sheet to an identical sheet in
another workbook?

=[Workbook.xls]Sheetname!Cell
 
G

Guest

You can use INDIRECT

=INDIRECT("'[Workbook.xls]"&C1&"'!Cell")


note that the other workbook has to be open



Regards,

Peo Sjoblom
 
G

Guest

That is great! Thanks - I've always assumed that it couldn't be done but this
will solve a LOT of problems that I have...
Thanks again

DJ

Peo Sjoblom said:
You can use INDIRECT

=INDIRECT("'[Workbook.xls]"&C1&"'!Cell")


note that the other workbook has to be open



Regards,

Peo Sjoblom

daj32 said:
How can I change the 'sheetname' in this formula based on the value (name) in
a cell or can I match the name of the current sheet to an identical sheet in
another workbook?

=[Workbook.xls]Sheetname!Cell
 
G

Guest

It looks like I can only see the results of this formula if BOTH workbooks
are open at the same time...is there anyway to avoid this?

D Johnson said:
That is great! Thanks - I've always assumed that it couldn't be done but this
will solve a LOT of problems that I have...
Thanks again

DJ

Peo Sjoblom said:
You can use INDIRECT

=INDIRECT("'[Workbook.xls]"&C1&"'!Cell")


note that the other workbook has to be open



Regards,

Peo Sjoblom

daj32 said:
How can I change the 'sheetname' in this formula based on the value (name) in
a cell or can I match the name of the current sheet to an identical sheet in
another workbook?

=[Workbook.xls]Sheetname!Cell
 
P

Peo Sjoblom

It's possible but somewhat complicated

http://makeashorterlink.com/?F2993260A


Regards,

Peo Sjoblom

D Johnson said:
It looks like I can only see the results of this formula if BOTH workbooks
are open at the same time...is there anyway to avoid this?

D Johnson said:
That is great! Thanks - I've always assumed that it couldn't be done but this
will solve a LOT of problems that I have...
Thanks again

DJ

Peo Sjoblom said:
You can use INDIRECT

=INDIRECT("'[Workbook.xls]"&C1&"'!Cell")


note that the other workbook has to be open



Regards,

Peo Sjoblom

:

How can I change the 'sheetname' in this formula based on the value (name) in
a cell or can I match the name of the current sheet to an identical sheet in
another workbook?

=[Workbook.xls]Sheetname!Cell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top