Aug 24 2021 08:23 AM - edited Aug 24 2021 08:25 AM
If I have a list of things, and I want to have the return from another list if it contains certain keywords.
In the appendix of file, the column A is the original list, and I want to have it return "good" in B2 if A2 contains "apple", and return "nice" in B3 if A3 contains "help". Just to search if contains words in column E will return the result in column F.
I noticed from similar questions that I could repeatedly using the if formula to accomplish the goal, but just wondering if have better and neat way to reach the purpose?
=IF(ISNUMBER(SEARCH("Apple",A2,1)),"good",
IF(ISNUMBER(SEARCH("help",A2,1)),"nice",
IF(ISNUMBER(SEARCH("water",A2,1)),"better",
"no match")))
Aug 24 2021 08:57 AM
Solution=FILTER($F$3:$F$5,ISNUMBER(SEARCH($E$3:$E$5,A2)))
Aug 24 2021 09:30 AM
Aug 24 2021 09:02 PM
Aug 24 2021 09:02 PM
Jan 04 2023 09:38 AM - edited Jan 04 2023 09:39 AM
Brilliant ! This helped so much!
Just wanted to say a huge thank you for this!
Saved me a lot of time!
Jan 04 2023 11:11 AM
@RyanOW , you are welcome