how we could search one cell and compare it to a list of words. If any of the words in the list existed then return the matching word.
how we could search one cell and compare it to a list of words. If any of the words in the list existed then return the matching word.
A sample sheet would have been nice... but:
=IFERROR(LOOKUP(1000,SEARCH(E$1:E$5,A2),E$1:E$5),"")
where E1:E5 contain keywords and A2 is the cell being searched.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
Hi Glenn,
Thanks for pitching in.
While trying the above formula,
It shows up with the value "0", where I need a result as a text string.
I also tried with the below conditions,
=INDEX(List,SUMPRODUCT(ISNUMBER(SEARCH(List,D3))*ROW(J$1:J$60)))
and it resulted in #NA.
Also tried with using wildcard
SEARCH("*"&D3&"*",List)
the results are same. #NA
Sample data is attached to this thread.
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.
Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/
(Note: this requirement is not optional. As you are new here, I shall do it for you this ONCE: https://chandoo.org/forum/threads/ex...f-words.54074/)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
You used a formula range that also included blank cells.
=IFERROR(LOOKUP(1000,SEARCH(J$2:J$41,D2),J$2:J$41),"")
If you had actually used the real range of keywords (I said "where E1:E5 contain keywords") it works perfectly, or
=IFERROR(LOOKUP(1000,SEARCH(J$2:J$41,D2),J$2:J$41),"Not Avaialable")
if you prefer.
Thanks for your support Glenn, the issue is resolved.
No problem!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks