Index Match help using a partial match

dakota727

Board Regular
Joined
Dec 3, 2006
Messages
164
Office Version
  1. 365
I have a general question about using index and match to include partial matches using wildcards. I am trying to use an array formula below to get what I'm after.

={INDEX(B3:F25,MATCH(1,(D3:D25="CAL")*(B3:B25="*"&K3&"*"),0),5)}

I hoped to use an array function to find the value where I return the value in column F where I find a match for Column B contains L1725662-1 and where column D equals "Cal". I think I'm close but I can't seem to get it to work. Does anyone see what I am missing? Or is there a better way to get what I'm after.
I trying to get to a formula that will not require a rigid format for entering the labels so the user only needs the base sample id anywhere in column B to find the corresponding row where column D equals "CAL".

Any help would be appreciated.

Capture1.JPG
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try
Excel Formula:
=SUMPRODUCT(--(D3:D25="CAL"),--(ISNUMBER(SEARCH("*"&K3&"*",B3:B25)))*F23:F25)
 
Upvote 0
=SUMPRODUCT(--(D3:D25="CAL"),--(ISNUMBER(SEARCH("*"&K3&"*",B3:B25)))*F3:F25)

Thank you that works a lot better. I still have the issue for when I have a situation with both L1725662-1 and L1725662-11 in the list. The sum product will sum the two values in column F since L1725662-11 will satisfy L1725662-1*. I think that will be a problem with the wildcard strategy no matter what I try. I was hoping to avoid forcing the users into some kind of entry convention but I think something like that will have to happen.

My latest thought was to combine the text strings of columns B and D and use a simple vlookup with a reference to the combined text including wildcards. As long as the list is ascending it should work and return the result for -1 before finding -11 if that makes sense. Nothing I tried is perfect yet so I am still looking and trying any suggestions.

Thank you very much for your suggestion.
 
Upvote 0

Forum statistics

Threads
1,214,865
Messages
6,121,988
Members
449,060
Latest member
mtsheetz

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