ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Linking to other sheets (depending of a cell) (https://www.excelbanter.com/excel-worksheet-functions/99267-linking-other-sheets-depending-cell.html)

petterss

Linking to other sheets (depending of a cell)
 

Hi!
I have a problem to make a link to an other sheet depending of what you
write in a cell. If you write "sheet2" in a specific cell I want to have
"sheet2" in the link!
Ex: I write "sheet3" in cell D2.
In an other cell I want a link like "[Object1.xls]D2$B$1.
D2=depending of what you write in D2! In this ex. should the link be:
[Object1.xls]sheet3!$B$1

Help me please!!


--
petterss
------------------------------------------------------------------------
petterss's Profile: http://www.excelforum.com/member.php...o&userid=36354
View this thread: http://www.excelforum.com/showthread...hreadid=561379


Ingolf

Linking to other sheets (depending of a cell)
 
Hi petterss,

=INDIRECT("[Object1.xls]" & D2 &"!$B$1")

should be what you're looking for.

Regards,
Ingolf



petterss schrieb:

Hi!
I have a problem to make a link to an other sheet depending of what you
write in a cell. If you write "sheet2" in a specific cell I want to have
"sheet2" in the link!
Ex: I write "sheet3" in cell D2.
In an other cell I want a link like "[Object1.xls]D2$B$1.
D2=depending of what you write in D2! In this ex. should the link be:
[Object1.xls]sheet3!$B$1

Help me please!!


--
petterss
------------------------------------------------------------------------
petterss's Profile: http://www.excelforum.com/member.php...o&userid=36354
View this thread: http://www.excelforum.com/showthread...hreadid=561379




All times are GMT +1. The time now is 08:31 PM.

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