By: Shamima Sultana

In reply to Ryan.

Hello Ryan,

Yes, it’s possible to achieve this in Excel! You can use a combination of formulas to extract the matching word from a string.

1. Use the SEARCH function to locate the position of your keyword within the string.
2. Use the MID function to extract the word based on the position.
If your lookup value is in cell A1 (e.g., “India”) and the text string is in B1 (e.g., “256 Indian Drive”), you can use the following formula:
=IF(ISNUMBER(SEARCH(A1,B1)),TRIM(MID(B1,SEARCH(A1,B1),LEN(A1))),”Not Found”)
This will return “Indian” if the word contains the keyword “India.” Adjust as needed for more specific cases.

Let me know if you’d like further clarification!

Regards
ExcelDemy