+ Reply to Thread
Results 1 to 7 of 7

Excel Search a Cell for a List of Words

  1. #1
    Registered User
    Join Date
    07-07-2023
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    3

    Question Excel Search a Cell for a List of Words

    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.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Excel Search a Cell for a List of Words

    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

  3. #3
    Registered User
    Join Date
    07-07-2023
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    3

    Unhappy Re: Excel Search a Cell for a List of Words

    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.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Excel Search a Cell for a List of Words

    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.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Excel Search a Cell for a List of Words

    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.

  6. #6
    Registered User
    Join Date
    07-07-2023
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    3

    Thumbs up Re: Excel Search a Cell for a List of Words

    Thanks for your support Glenn, the issue is resolved.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Excel Search a Cell for a List of Words

    No problem!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search for a certain type of words within a excel sheet, with out a defined list.
    By John Airs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2019, 08:46 PM
  2. Excel VBA macro to search list of words
    By ABBose in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2018, 12:17 PM
  3. Replies: 15
    Last Post: 08-07-2017, 02:40 PM
  4. [SOLVED] How to search for a list of words in a cell
    By Andys24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2013, 06:15 AM
  5. Replies: 3
    Last Post: 08-14-2013, 10:38 AM
  6. [SOLVED] Search cell to see if it contains text from a list of words
    By amurray2307 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2013, 05:41 AM
  7. Replies: 1
    Last Post: 04-04-2012, 07:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1