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:


[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Apples
[/TD]
[TD]Fruit
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Pears
[/TD]
[TD]Fruit
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Bananas
[/TD]
[TD]Fruit
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Grapes
[/TD]
[TD]Fruit
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Corn
[/TD]
[TD]Veg
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Beets
[/TD]
[TD]Veg
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]Value to Look up
[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]White Corn
[/TD]
[TD]=INDEX(B1:B6,MATCH(A9,A1:A6,0))

Would like this cell to return "Veg"
[/TD]
[/TR]
</tbody>[/TABLE]


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 is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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