Index Match with wildcards

DavidH56

New Member
Joined
Jul 29, 2011
Messages
33
Hi All,

I'm having a problem getting index/match to work with wild cards, and I haven't come across a solution to my particular issue.

Here's a simplified version:


A
B
1
Apples
Fruit
2
Pears
Fruit
3
Bananas
Fruit
4
Grapes
Fruit
5
Corn
Veg
6
Beets
Veg
7
8
Value to Look up
Result
9
White Corn
=INDEX(B1:B6,MATCH(A9,A1:A6,0))

Would like this cell to return "Veg"

<tbody>
</tbody>


I'd like to match on the "Corn" part of A9 and return Veg in B9. Here's the formula
I'm using in B9: =INDEX(B1:B6,MATCH(A9,A1:A6,0))
If I enter "Corn" in A9, I get "Veg" in B9 as expected. If I Enter "White Corn" in A9, B9 returns "#N/A." I thought I could simply add wild cards to cell A5, like "*Corn*", to get a match on "White Corn," but that doesn't work. Is it possible to create a formula that does what I'm trying to accomplish?

Thanks in advance for your help!

David
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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