Is there a way to reference the URL stored in another cell (as a hyperlink) without extracting via VBA or similar?

IneptPig

New Member
Joined
Jun 13, 2006
Messages
15
Hi all,

I have an Excel sheet with a selection of hyperlinks included; what I'd like to do is concatenate the various parts of information, but then retain the hyperlink from a specific column.

Is there a way to do this? As the links are not stored on the excel sheet as their actual location (but things like 'home', 'search' but with a clickable URL) then the hyperlink function doesn't seem to work as it just returns the text and not the link.

Am I missing something obvious?

Thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Yes, hyperlink function just does this.

Excel Formula:
=HYPERLINK(your_concatenated_text, your_hyperlink)
 
Upvote 0
Sorry, to expand and explain as perhaps I didn't do the job properly, if I have this:

LocationRegionActive?
HomeAsiaNo

and then want to the to be merged into a single version - Concat(a1, " / ", b1, "/ Active: ", c1), so the text would be: Home / Asia / Active: No

but if I want to use the hyperlink from that first column, it doesn't work, as it's not the actual web-address that it would take - instead it would just try to go to 'Home' (which doesn't exist).
 
Upvote 0
It is quite şmpossible without VBA.

Create a standard module in vba window. In standart module inset the following function:
VBA Code:
Function GETURL(Hyperlink As Range)
  GETURL= Hyperlink.Hyperlinks(1).Address
End Function
Close VBA window.

In formula bar you can use like:
Excel Formula:
=HYPERLINK(Concat(a1, " / ", b1, "/ Active: ", c1), GETURL(a1))
 
Upvote 0
Thanks - I was aware of GETURL but just wondered if there was a way around it without VBA (as it's a spreadsheet I don't have full control over, just end data tinkering).

Will use VBA!
 
Upvote 0

Forum statistics

Threads
1,215,362
Messages
6,124,502
Members
449,166
Latest member
hokjock

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