+ Reply to Thread
Results 1 to 6 of 6

search text string using comma delimitated list

  1. #1
    Registered User
    Join Date
    06-23-2017
    Location
    Keene, NH
    MS-Off Ver
    2017
    Posts
    6

    search text string using comma delimitated list

    I have some key words i want to search for in a text string using a comma delimitated list. Is there a good way to do this? I've been using a function like this, =IF(ISNUMBER(SEARCH(substring,text)), "Yes", "No")

    I'd like to replace the substring with the comma delimited list.

    I've uploaded an example sheet that shows what result I'm looking for.

    Thanks for the help!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: search text string using comma delimitated list

    =LOOKUP(2,1/SEARCH($E$3:$E$5,A2),$E$3:$E$5)
    in e3:e5 your words

  3. #3
    Registered User
    Join Date
    06-23-2017
    Location
    Keene, NH
    MS-Off Ver
    2017
    Posts
    6

    Re: search text string using comma delimitated list

    Thanks

    I need to be able to search this list in comma delimited form though. Is that possible?

    Thanks

  4. #4
    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,053

    Re: search text string using comma delimitated list

    No doubt, I'll be proved wrong in a few moments... but no: I don't think that it's possible.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: search text string using comma delimitated list

    hi ian2. based on your eg with the assumption i only have a string of keywords and only 3 inside it, maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: search text string using comma delimitated list

    @ ian2

    In A3 what determines the preference of "Grape" over "Cherry"? They are both in the key word string.
    Dave

+ 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. Replies: 2
    Last Post: 05-14-2015, 01:30 PM
  2. Search for comma-separated list of items
    By BBerndsen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2013, 11:16 AM
  3. Update Combo/List Box based on Text box search string
    By megha_gharote in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2013, 06:16 AM
  4. Replace last comma in string of text
    By financegrl in forum Excel General
    Replies: 2
    Last Post: 09-26-2012, 03:57 AM
  5. [SOLVED] Replace last comma in string of text
    By financegrl in forum Excel General
    Replies: 4
    Last Post: 09-21-2012, 03:19 PM
  6. Search for occurences of text string from a list
    By howardphillis in forum Excel General
    Replies: 13
    Last Post: 05-25-2012, 08:37 AM
  7. Excel 2007 : Insert comma to text string
    By furiousfox in forum Excel General
    Replies: 3
    Last Post: 09-15-2008, 05:33 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