Partial match with XLOOKUP

namy77

New Member
Joined
Apr 19, 2016
Messages
27
Hi guys

I am trying to do an XLOOKUP to do a partial match on keywords using "*" for wildcard search, but this has been resulting in errors. Can anyone point out what I did wrong or give me an alternative solution.

In this example, the lookup cell "Pre-installed aspheric posterior intraocular lens" has the word intraocular as the keyword and should match and return the cell next to it on sheet 2 "implants"
1611857110804.png


1611857126285.png


Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,969
Office Version
  1. 365
Platform
  1. Windows
You cannot use xlookup like that, try
Excel Formula:
=LOOKUP(2,1/(ISNUMBER(SEARCH(Sheet2!$A$2:$A$21,Sheet1!A2))),Sheet2!$B$2:$B$21)

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 

Watch MrExcel Video

Forum statistics

Threads
1,130,321
Messages
5,641,516
Members
417,213
Latest member
wikk

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
Top