A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
In cell C2, enter this formula and copy down
=ISNUMBER(LOOKUP(9E+300,SEARCH(TRIM(MID(SUBSTITUTE(A2&REPT(" ^^^",LEN(A2))," ",REPT(" ",999)),ROW(INDIRECT("1:"&LEN(A2)))*999-998,999)),B2)))
Hope this helps.