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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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