Xlookup to return cell text + hyperlink

Jobb1Excel

New Member
Joined
Oct 17, 2023
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hey, im looking for a formula that returns the hyperlink from the result of the xlookup from another sheet.

i got a "sheet1" and "sheet2": In the "sheet1" im using xlookup to find job descriptions (each material number has a job description file linked to the cell), but when i use the xlookup to get the job description for each material number it only returns the cell text and not the hyperlink from the cell. I have tried =hyperlink with no luck...

1702548949831.png

Cell A1-A4 is the cells with hyperlink im using xlookup to find. But the result i get is example: 1 and no link.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
That is not a standard module, it's a sheet module.
 
Upvote 0
Can you add the debug.print line to the Function and see if what you get in the immediate window makes sense and maybe copy that into a URL address box and see if it works.
If you can't see the immediate window then when you are in VBA type Ctrl+G

VBA Code:
Function GetURL(cell As Range) As Variant
    GetURL = cell.Hyperlinks(1).Address
    Debug.Print GetURL
End Function
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

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