Help with XLOOKUP

JARichard74

Board Regular
Joined
Dec 16, 2019
Messages
114
Office Version
  1. 365
Platform
  1. Windows
=XLOOKUP(LEFT(Price!A4,3)&”*”,All!$R$1:$BA$1,XLOOKUP(Price!$A$3,All!$I$3:$I$8,OFFSET(All!$R$3:$BA$8,0,6)),,2)

Formula works as designed if Price!A4 is an exact match to one of the values in All!$R$1:$BA$1. The problem I am trying to solve is that the Value Price!A4 is not an exact match e.g. Price!A4=GoldenLabradorRetriver while lets say All!$R$1 = Golden Labrador Retriever
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Allowing for spelling errors etc would need fuzzy matching, something that excel functions do not support. There are a few options that may work but the solution would be to use data validation to ensure that the entries are an exact match.
 
Upvote 0
Solution
Allowing for spelling errors etc would need fuzzy matching, something that excel functions do not support. There are a few options that may work but the solution would be to use data validation to ensure that the entries are an exact match.
Thanks. It actually works. I noticed the quotes around the * did not look right. The concern I have is if more than one entry has the same first 3 left characters then it would not work. I will look into data validation
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,495
Members
449,088
Latest member
Melvetica

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