Index match with wildcards in match array?

bigbrownbear123

New Member
Joined
Nov 7, 2016
Messages
1
Hello,

I would like to have an index match which will allow wildcards around the match array e.g.

=INDEX(Sheet2!$D$2:$D$3,MATCH($M2,"*"&Sheet2!$C$2:$C$3&"*",0))

I know this is not possible but is there some other formula which would achieve the same result (to match a text string to a sub-string of that text)?

Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi

So I suggest that you build a sample as I describe, see if the suggested formula works for you, and then modify it to your exact requirement if it does.

Enter the following values in the following cells:
A1: Big Brown Bear
D1: Small
D2: Brown
D3: Pig

Now, enter the following formula (anywhere on the same sheet).

=LOOKUP(10^308,MATCH("*"&D1:D3&"*",A1,0),ROW(D1:D3)-ROW(D1)+1)

Which should yield: 2

MATCH returns the ordinal index position of an item in a table or array. If the lookup value exists more than once then it returns the position of the first find only.

My formula also returns the ordinal position of an item in the table, but it will return position of the last found item.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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