ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   concatenate link (https://www.excelbanter.com/excel-worksheet-functions/148709-concatenate-link.html)

Feesh

concatenate link
 
I am using concatenate to create a link to a cell in a different spreadsheet.
I cannot find an easy way to activate the link.

I have a formula =("="&F$1&"!"&"$B"&$A60) where the content of strings and
referenced cells generates a string: =filename.xls!$B67

However I can't get it to display the value of the string. It just displays:
=filename.xls!$B67


If I copy the cell and paste as a value, I'm close, but to get it to work as
link, I have to edit the string...for example replace "=file" with "file"
and then replace "file" back to "=file" and then it works correctly. Is
there a better way to activate a link?

bj

concatenate link
 
use indirect()
=indirect(F$1&"!$B"&$A60)

"Feesh" wrote:

I am using concatenate to create a link to a cell in a different spreadsheet.
I cannot find an easy way to activate the link.

I have a formula =("="&F$1&"!"&"$B"&$A60) where the content of strings and
referenced cells generates a string: =filename.xls!$B67

However I can't get it to display the value of the string. It just displays:
=filename.xls!$B67


If I copy the cell and paste as a value, I'm close, but to get it to work as
link, I have to edit the string...for example replace "=file" with "file"
and then replace "file" back to "=file" and then it works correctly. Is
there a better way to activate a link?


Scoops

concatenate link
 
On 2 Jul, 17:10, Feesh wrote:
I am using concatenate to create a link to a cell in a different spreadsheet.
I cannot find an easy way to activate the link.

I have a formula =("="&F$1&"!"&"$B"&$A60) where the content of strings and
referenced cells generates a string: =filename.xls!$B67

However I can't get it to display the value of the string. It just displays:
=filename.xls!$B67

If I copy the cell and paste as a value, I'm close, but to get it to work as
link, I have to edit the string...for example replace "=file" with "file"
and then replace "file" back to "=file" and then it works correctly. Is
there a better way to activate a link?


Hi Feesh

Try =INDIRECT(F$1&"!"&"$B"&$A60)

But note that this will only reference an open workbook.

Regards

Steve


Feesh

concatenate link
 
Thanks for your help. This works, though I reference too many other files to
make this practical. For now, I'll stick with the copy paste and double
replace.

Regards, Feesh


"Scoops" wrote:

On 2 Jul, 17:10, Feesh wrote:
I am using concatenate to create a link to a cell in a different spreadsheet.
I cannot find an easy way to activate the link.

I have a formula =("="&F$1&"!"&"$B"&$A60) where the content of strings and
referenced cells generates a string: =filename.xls!$B67

However I can't get it to display the value of the string. It just displays:
=filename.xls!$B67

If I copy the cell and paste as a value, I'm close, but to get it to work as
link, I have to edit the string...for example replace "=file" with "file"
and then replace "file" back to "=file" and then it works correctly. Is
there a better way to activate a link?


Hi Feesh

Try =INDIRECT(F$1&"!"&"$B"&$A60)

But note that this will only reference an open workbook.

Regards

Steve




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

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