X/Vlookup or Index Match with Wildcards in Array

BHG 463

New Member
Joined
Jan 25, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
The Account Name I am trying to look up is static. I am trying to find a match on two criteria where one of arrays has Wildcards that are built into the Name Variation column. The country needs to be exact match.
If I have the customer name "Bob's Ace Hardware" in the United States and my array data has *Ace Hardware* and United States, I want to be able to return the Common Name of Ace Hardware and that it was found on the Sort Order row.
Office 365 on Windows.

Mr Excel Help.xlsx
ABCDEFGHI
1Wildcard MatchExact Match
2Common NameName VariationCountrySort OrderAccount NameCountryCommon Name (Returned Value)Sort Order (Returned Value)
3Ace Hardware*ACE HARDWARE*Indonesia1Bob's Ace HardwareUnited StatesAce Hardware1
4Ace Hardware*KAWAN LAMA SEJAHTERA*Indonesia2Bob's AceHardwareUnited StatesAce Hardware7
5Ace HardwareACE HDW*United States3Aces HardwareUnited States#N/A#N/A
6Ace Hardware* ACE HARDWARE*United States4Ace HardwareCanada#N/A#N/A
7Ace HardwareACE*HARDWAREUnited States5Sysco Food ServicesUnited StatesSysco10
8Ace HardwareROCK*ACE HARDWARE*United States6Sysco Food ServicesFranceSYSCO FRANCE14
9Ace HardwareROCKY?ÇÖS ACE HARDWARE - CORPORATEUnited States7SyscoFoodServicesFrance#N/A#N/A
10Ace HardwareACE HARDWARE*United States8
11SygmaSYGMA*United States9
12SyscoSYSCO *United States10
13SYSCO FRANCEBRAKE *France11
14SYSCO FRANCE*DAVIGEL*France12
15SYSCO FRANCEDAVIGEL*France13
16SYSCO FRANCESYSCO *France14
17SYSCO FRANCE*CHASSIS BRAKES*France15
18TRUE VALUE CO*TRUE VALUE*United States16
19TRUE VALUE COTRUSERV*United States17
Sheet1
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Which column has your initial search string(s)?


would you be kind enough to include all the additional info for the xl2bb mini worksheet:
please check all the boxes.

1706214925675.png
 
Upvote 0
I hope this is better, I know I am far off. H and I have my search string.
Mr Excel Help.xlsx
H
11
Sheet1
Mr Excel Help.xlsx
ABCDEFGHI
1Wildcard MatchExact Match
2Common NameName VariationCountrySort OrderAccount NameCountryCommon Name (Returned Value)Sort Order (Returned Value)
3Ace Hardware*ACE HARDWARE*Indonesia1Bob's Ace HardwareUnited States=LOOKUP(1,IFERROR(MATCH($B$3:$B$19,F3,0),FALSE),$A$3:$A$19)=LOOKUP(1,IFERROR(MATCH($B$3:$B$19,F3,0),FALSE),$D$3:$D$19)
4Ace Hardware*KAWAN LAMA SEJAHTERA*Indonesia2Bob's AceHardwareUnited States#N/A#N/A
5Ace HardwareACE HDW*United States3Aces HardwareUnited StatesAce Hardware5
6Ace Hardware* ACE HARDWARE*United States4Ace HardwareCanadaAce Hardware5
7Ace HardwareACE*HARDWAREUnited States5Sysco Food ServicesUnited StatesSysco10
8Ace HardwareROCK*ACE HARDWARE*United States6Sysco Food ServicesFranceSysco10
9Ace HardwareROCKY?ÇÖS ACE HARDWARE - CORPORATEUnited States7SyscoFoodServicesFrance#N/A#N/A
10Ace HardwareACE HARDWARE*United States8
11SygmaSYGMA*United States9
12SyscoSYSCO *United States10
Sheet1
Cell Formulas
RangeFormula
H4:H9H4=LOOKUP(1,IFERROR(MATCH($B$3:$B$19,F4,0),FALSE),$A$3:$A$19)
I4:I9I4=LOOKUP(1,IFERROR(MATCH($B$3:$B$19,F4,0),FALSE),$D$3:$D$19)
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,125
Members
453,021
Latest member
Justyna P

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