How can I use XLOOKUP to return the correct name where the first name is different in the data to the table of names it is looking to?

Surreybloke

Board Regular
Joined
Apr 1, 2010
Messages
155
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a spreadsheet which lists a number of salespeople's names, ID numbers, etc. which is used a reference tool for data I have which has salespeople's names on it. In the data, the names sometimes come through with a different version of their first name (but is still for the same person) which might be a slightly different spelling or might be Cathy in the data, but Catherine in the spreadsheet. In some cases I have different people with the same surname but a completely different first name. I have experimented with using the XLOOKUP on the surname earlier which then highlighted the issue about it returning the first name it finds with a matching surname, but not the person I want it to be.

Is there a way using the wildcard function perhaps that I can overcome these issues to return the ID number for the correct person based on the name that has come through in the data versus my "master spreadsheet" of employee details?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
In that case your limited to using a wildcard with the 1st 2 or 3 characters of the first name & the whole surname.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,960
Messages
6,122,479
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