Finding a substring within a range

Rizarita

New Member
Joined
Apr 21, 2018
Messages
4
Hello. To keep it simple, if column A contains the letters A-C and column B contains strings, how do I return the correct letter (B) in the cell ??? (D1) when I type dog into C1 please? I believe I need to use an array formula containing SEARCH, INDEX and MATCH. I have to use a formula in this instance, VBA is no good. Can you help please?

[TABLE="width: 420"]
<colgroup><col><col><col span="3"></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]There's a cat in here somewhere[/TD]
[TD][/TD]
[TD]cat[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]There's a dog in here somewhere[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]There's a fish in here somewhere[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thanks so much for your time.
 

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
Sorry that should say 'dog' in the illustration below the question - and I didn't know how to edit the post.
 
Upvote 0
My word! I never knew you could use a wildcard in a match function! Thank you very much Rick.
If it helps any, here are the function that I am aware of (true for versions of Excel up to XL2010 which is my latest current version) that can make use of wildcards...

• SUMIF - all versions of Excel
• COUNTIF - all versions of Excel
• SEARCH - all versions of Excel
• MATCH - all versions of Excel
• HLOOKUP - all versions of Excel
• VLOOKUP - all versions of Excel
• SUMIFS - Excel 2007 and later
• COUNTIFS - Excel 2007 and later
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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