Xlookup against hyperlink number in cell

rrmando18

New Member
Joined
Sep 13, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello party people. Is there a formula that would allow me to xlookup the job number based on the hyperlink PO number? The PO Number will always be a hyperlink. The list is much longer than the sample below. Xlookup returns blank when I try a regular xlookup formula. I ended up using a helper column where I convert the hyperlink PO number to text and I'm able to lookup against the helper column. Is there a formula option without the helper column? Thank you for your time.

Job NumberPO Number
2500034502736874
2500044502709556
2500054502734008
2500044502733967
2500064502733569
2500074502724744
2500054502735319
2500084502737156
 
if u need helper column to convert the hyperlink cell, so try to change the hyperlink form in the formula like this :

Excel Formula:
=XLOOKUP(VALUETOTEXT(H2),B2:B9,A2:A9)
' Change PO Format to "Text"
Excel Formula:
=XLOOKUP(H2,NUMBERVALUE(B2:B9),A2:A9)
' Change Hyperlink Format to "Number"

because the Hyperlink format is “Text”, so you change the PO Number format to “text”, or vice versa change the hyperlink to “Number” format


1742351415723.png
 
Upvote 0
Solution
if u need helper column to convert the hyperlink cell, so try to change the hyperlink form in the formula like this :

Excel Formula:
=XLOOKUP(VALUETOTEXT(H2),B2:B9,A2:A9)
' Change PO Format to "Text"
Excel Formula:
=XLOOKUP(H2,NUMBERVALUE(B2:B9),A2:A9)
' Change Hyperlink Format to "Number"

because the Hyperlink format is “Text”, so you change the PO Number format to “text”, or vice versa change the hyperlink to “Number” format


View attachment 123446

The VALUETOTEXT did the trick without having to use the helper column. Thank you so much!
 
Upvote 0

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