Hello. I've had a lot of luck using the hyperlink formula but am stumped by this one.
Here's the path to the workbook:
C:\Users\MyName\Documents\ExcelFolder\MyWorkbook.xlsb > MySheet > MyTbl and in column D of MyTbl is the field TVSeries. In cell D17 is "Atlanta" without quotes.
I'm trying to use the hyperlink formula to link to that cell from a different worksheet in the same workbook.
First, I have the CELL/address formula:
=CELL("address",INDEX(MyTbl,MATCH("Atlanta",MyTbl[TVSeries],0),4))
which results in:
'[MyWorkbook.xlsb]MyTbl'!$D$17
Then I use Substitute to get the correct string for the cell:
=SUBSTITUTE(CELL("address",INDEX(MyTbl,MATCH("Atlanta",MyTbl[TVSeries],0),4)),"'[MyWorkbook.xlsb]",""""&"#'")&""""
which gets me to:
"#'MyTbl'!$D$17" which is what I want for the link_location.
But if I if I enter the Substitute formula for the link_location I get the "Cannot open specified file." error.
Anyone have any suggestions? This works: =HYPERLINK("#'MyTbl'!$D$17","FriendlyName") so I'm stumped why the Substitute formula result doesn't. The Hyperlink formula reads the link_location as a string, right?
Here's the path to the workbook:
C:\Users\MyName\Documents\ExcelFolder\MyWorkbook.xlsb > MySheet > MyTbl and in column D of MyTbl is the field TVSeries. In cell D17 is "Atlanta" without quotes.
I'm trying to use the hyperlink formula to link to that cell from a different worksheet in the same workbook.
First, I have the CELL/address formula:
=CELL("address",INDEX(MyTbl,MATCH("Atlanta",MyTbl[TVSeries],0),4))
which results in:
'[MyWorkbook.xlsb]MyTbl'!$D$17
Then I use Substitute to get the correct string for the cell:
=SUBSTITUTE(CELL("address",INDEX(MyTbl,MATCH("Atlanta",MyTbl[TVSeries],0),4)),"'[MyWorkbook.xlsb]",""""&"#'")&""""
which gets me to:
"#'MyTbl'!$D$17" which is what I want for the link_location.
But if I if I enter the Substitute formula for the link_location I get the "Cannot open specified file." error.
Anyone have any suggestions? This works: =HYPERLINK("#'MyTbl'!$D$17","FriendlyName") so I'm stumped why the Substitute formula result doesn't. The Hyperlink formula reads the link_location as a string, right?