ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Evaluate string as a formula (https://www.excelbanter.com/excel-worksheet-functions/32515-evaluate-string-formula.html)

peacelittleone

Evaluate string as a formula
 

I have this concatentated string in cell D1:

=CONCATENATE("=hyperlink('Sheet1'!C",A1,",""",B1," "")")

Which appropriately creates a string of:
=hyperlink('Sheet1'!C3,"Link me")

My question is this:

How do I get excel to evaluate that string as a formula?

TIA

Heather.


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=382267


Héctor Miguel

hi, Heather !

I have this concatentated string in cell D1:
=CONCATENATE("=hyperlink('Sheet1'!C",A1,",""",B1," "")")
Which appropriately creates a string of:
=hyperlink('Sheet1'!C3,"Link me")
My question is this:
How do I get excel to evaluate that string as a formula?


you can use 'directly' in D1: =hyperlink("#'sheet1'!c"&a1,b1)

hth,
hector.



peacelittleone


Thank you Hector!

Now a follow-up...,.

The hyperlink doesn't seem to work if the link is in the same workbook
but on a different worksheet. Is there a different function I should
be using?

TIA

Heather.


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=382267


peacelittleone


Nevermind. I got it.

THANK YOU.

Heather.


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=382267



All times are GMT +1. The time now is 04:13 AM.

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