How To CONCAT With A Wildcard

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
As detailed in the image, I need to do a lookup based on two factors: Name & Code. However, the Code in the lookup array may be in a string of codes. Normally, in a situation like this, I would add helper columns that would concatenate the name and code and do a lookup in the second table. However, I'm not sure how to do that while incorporating a wildcard. The obvious results in column C would be ONE, THREE, TWO, FOUR in rows 2 through 5.

Thanks in advance for your help.
 

Attachments

  • Concat Wildcard.png
    Concat Wildcard.png
    7.3 KB · Views: 99

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about
Excel Formula:
=XLOOKUP(A3&"*,"&B3&"*",$E$2:$E$5&","&$F$2:$F$5,$G$2:$G$5,"?",2)
 
Upvote 0
Solution
Fluff, I modified your formula as follows:
=XLOOKUP(A2&"*"&B2&"*",$E$2:$E$5&", "&$F$2:$F$5,$G$2:$G$5,"?",2)
and it works fine. Thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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