Dynamic hyperlink in the same cell as the data?

sabot7726

Board Regular
Joined
Jun 2, 2006
Messages
62
I took a look around and noticed I can use the HYPERLINK command to link to a URL plus the contents of a different cell, such as something like =HYPERLINK(www.blah.com&A1).

My question is, can I do a dynamic hyperlink that is smart enough to append whatever data is in the same cell to be the final part of the URL? Or do I HAVE to have another column where the hyperlink command is pointing to the first column as the variable?

For example I have a single column with either nothing in it or a 4 digit number. The 4 digit number is also the end of the URL I want it to link to. For example if the column says 1234, I would want it to go to "www.example.com/CSIssue_View.asp?IssueNbr=1234"

Thanks for any assistance! :)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Perhaps:

Code:
=HYPERLINK("www.example.com"&REPT("/CSIssue_View.asp?IssueNbr="&$A1,$A1<>""))
 
Last edited:
Upvote 0
Hrm I tried that and it gave a circular reference error. Does it matter that I adjusted it to be the real field instead of A1?

I used:
=HYPERLINK("www.example.com"&REPT("/CSIssue_View.asp?IssueNbr="&$C35,$C35<>""))
 
Upvote 0
I think I missed a fundamental point... if you're the 1234 appears in the cell you wish to be a Hyperlink then you would need to use VBA to convert ... else, as you say, have the hyperlink in a different cell to the 1234.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top