In the following great formula/example from @Eric W, is it possible to change the formula in B, where it will give results even if not separated by whitespace and delimiters. It will help if it at least ignores delimiters like ".", "?" and "!". Thank you.
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
27 | Sample | Output | Key | ||
28 | Red wine on the carpet | Red | Red | ||
29 | Blue -like the color or the mood | Blue | Blue | ||
30 | yellow -testing if capitalization matters | Yellow | Yellow | ||
31 | xxgreenxx if the string needs to be isolated by whitespace or delimiters | no match | Green | ||
32 | Red | Red | |||
33 | Blue | Blue | |||
34 | Green | Green | |||
35 | Yellow | Yellow | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B28:B35 | B28 | =IFERROR(LOOKUP(2,1/SEARCH(" "&$C$28:$C$35&" "," "&A2&" "),$C$28:$C$35),"no match") |