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?

AThere's a cat in here somewherecat???
BThere's a dog in here somewhere
CThere's a fish in here somewhere

<colgroup><col><col><col span="3"></colgroup><tbody>
</tbody>

Thanks so much for your time.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,213,504
Messages
6,114,020
Members
448,543
Latest member
MartinLarkin

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