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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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