
Originally Posted by
MrShorty
I would tend not to use the FIND() function for this. I would probably use one of Excel's lookup functions with the exact match option. When you choose the exact match option for one of Excel's lookup functions, you can use wildcard characters (like * or ?) to search for a string within the other strings. For the scenario you describe, something like =MATCH(CONCATENATE("*",A1,"*"),$B$1:$B$10,0) will return the row number that contains the text string if it exists. If not, it will return the N/A error.
(If you object to the N/A error value when it is not found, you can nest that inside of an IFERROR() or IFNA() function (or similar) to trap the error and return whatever you would prefer to return.)
Would something like that work for you?
Bookmarks