Looking for index match type formula using two wildcard references into a column

silverback24

Board Regular
Joined
Jul 30, 2013
Messages
58
Basically I have 3 columns of data. A and B have single part numbers, C has kits with these part numbers and other data. I am looking for a formula that will let me search with wildcards in all of column C for a kit that has both parts A and B and return the kit number to column D. C's kit numbers are not all uniform in nature hence the need for wildcards.

I am matching up our part numbers to corresponding competitor kits, so I have our kits broken into parts and am searching for their kits that contain both of the parts.

Thanks in advance for your help.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I was hoping something like this would work: {=index(kit column,match(and("*"&partA&"*","*"&partB&"*"),kit column,0))}
 
Upvote 0
Hope this helps. Not sure how to post a workbook onto here.
If A is blank then blank, means they don't have a matching part to ours. Example searching for A4 and B4 should return LW-RSMK44216-44216-681-2-4 or RSMK44216-44216-681-2-4. Same kit, lw- means comes with warranty.


Part APart BMatching Kit numberKit Numbers
394RSCD6375-6375-591-2-4
394RSCD6582-6582-673-2-4
RSMK44216681RSMK41434-41434-1156-2-4
RSMK44216681RSMK65042-65042-727-2-4
682RSMK64014-64014-648-2-4
493LW-RSMK65042-65042-727-2-4
946RSMK44142-44142-819-2-4
RSMK44006558CBO6364650
RSMK44006558RSCD41058-41058-562-2-4
RSMK44285918RSCD41277-41277-914-2-4
RSMK44175558LW-RSMK6384-6384-820-2-4
RSMK44175558RSCD65095-65095-1028-2-4
RSMK44175558RSMK6476-6476-473-2-4
RSMK442761098RSMK65049726
RSMK442811107RSCD41352-41352-815-2-4
RSMK44057736RSCD41123-41123-653-2-4
RSMK44057736RSMK41268-41268-707-2-4
RSMK44231839RSMK64101-64101-934-2-4
RSMK44206839RSMK41323-41323-440-2-4
RSMK44231839LW-RSMK64014-64014-648-2-4
RSMK44206839RSMK41272-41272-817-2-4
RSMK44195687ARSMK4289-4289-465-2-4
RSMK44252918RSMK41272-41272-923-2-4
682RSMK4466-4466-696-2-4

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Try this array formula in C2 copied down

=IF(A2="","",IFERROR(INDEX($D$2:$D$1000,MATCH(1,IF(ISNUMBER(SEARCH(A2,$D$2:$D$1000)),IF(ISNUMBER(SEARCH("-"&B2&"-",$D$2:$D$1000)),1)),0)),"Not Found"))

confirmed with Ctrl+Shift+Enter simultaneously, not just Enter
(hold down both Ctrl and Shift keys and hit Enter)

Hope this helps

M.
 
Upvote 0
This works! I had to replace the "-" with "*" because not all the kits have -partb- format, but that is easy to do. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,957
Members
449,200
Latest member
indiansth

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