use xlookup with wild cards

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
821
Office Version
  1. 365
Platform
  1. Windows
Hi

I’m trying to use Xlookup for a partial match
A1 is the reference cell
A2:A4 has first and last name of a person
B2:B4 has dates
I keep getting “no”
I’ve tried to use
Excel Formula:
=XLOOKUP(A1,A2:A4,B2:B4,”no”)
AND
Excel Formula:
=XLOOKUP(A1&”*”,A2:A4,B2:B4,”no”)
AND
Excel Formula:
=Xlookup(“*”&A1”*”,A2:A4,B2:B4,”no”)
If I use both names in A1, and not use the wild cards, I get the correct results

mike
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Maybe try this. It returns all dates with partial match.
Book1
ABCDE
1Apple1/6/2021
2Apple Bee1/6/20212/9/2021
3Bee Ghee1/23/20213/15/2021
4Apple Macbook2/9/2021
5Ghee2/26/2021
6The Greatest Apple Tree3/15/2021
7
Sheet6
Cell Formulas
RangeFormula
D1:D3D1=FILTER(B2:B6,ISNUMBER(SEARCH(A1,A2:A6)),"no")
Dynamic array formulas.
 
Upvote 0
How about
Excel Formula:
=XLOOKUP("*"&A1&"*",A2:A4,B2:B4,"no",2)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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