Xlookup Multiple Criteria

stevie2612

New Member
Joined
May 25, 2021
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi i have the below xlookup formula looking up 3 criteria.

The second criteria in bold is a country I want to have this lookup as a wildcard as the column it's looking up can have multiple different country names in the same cell.

When i add the wildcard * into the formula the result is a #N/A. Any ideas?

=XLOOKUP(1,(('Product Table Master Table'!$C$1:$C$3375=B3)*('Product Table Master Table'!$G$1:$G$3375='Test MHB'!C3)*('Product Table Master Table'!$H$1:$H$3375='Test MHB'!E3)),'Product Table Master Table'!$A$1:$A$3375,,2)



=XLOOKUP(1,(('Product Table Master Table'!$C$1:$C$3375=B3)*('Product Table Master Table'!$G$1:$G$3375="*"&'Test MHB'!C3&"*")*('Product Table Master Table'!$H$1:$H$3375='Test MHB'!E3)),'Product Table Master Table'!$A$1:$A$3375,,2)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about
Excel Formula:
=TAKE(FILTER('Product Table Master Table'!$A$1:$A$3375,('Product Table Master Table'!$C$1:$C$3375=B3)*(ISNUMBER(SEARCH(C3,'Product Table Master Table'!$G$1:$G$3375)))*('Product Table Master Table'!$H$1:$H$3375=E3)),1)
 
Upvote 0
Another option and following Fluff's assumption that the formula and criteria are on the sheet "Test MHB"

Excel Formula:
=XLOOKUP(1,
                        (
                        ('Product Table Master Table'!$C$1:$C$3375=B3)*
                        (COUNTIFS('Product Table Master Table'!$G$1:$G$3375,"*"&C3&"*")<>0)*
                        ('Product Table Master Table'!$H$1:$H$3375=E3)
                        ),
                        'Product Table Master Table'!$A$1:$A$3375,
                        "not found")
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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