Hello,
I need a formula to search for a substring in an array of possible strings, then output the matching string.
Example:
Col A contains the substrings I'm looking for:
BLACK
BLUE
GREEN
ORANGE
PURPLE
RED
WHITE
YELLOW
Col B will output the matching string it finds
Col C has the array of possible string matches, for example:
Conduct IMT - (RED)
Conduct IMT - Group 101A (BLUE, YELLOW, PURPLE)
GREEN - Conduct IMT - Group 14
Attend Meeting - Group 16 - WHITE, BLACK, ORANGE
So, I want the formula in Col B to tell me for the first one in Col A (Black), it will output the string "Attend Meeting - Group 16 - WHITE, BLACK, ORANGE"
Thanks very much!
Last edited by kkerr; 01-06-2011 at 02:01 PM.
Assuming data starts in Row2, then in B2:
=INDEX($C$2:$C$5,MATCH("*"&A2&"*",$C$2:$C$5,0))
copied down.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
This worked beautifully! Many thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks