+ Reply to Thread
Results 1 to 6 of 6

How to extract multiple words from one cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Saint John, NB
    MS-Off Ver
    2012
    Posts
    3

    How to extract multiple words from one cell

    I am trying to search a single Cell and extract different words to summarize issues.

    I am extracting ticket data which includes Short Desc, Desc and resolution. I have concatenated those 3 fields into one field(one cell which is D2)
    I want to search cell D2 and extract different words which can allow me to quickly categorize issues.

    In cell A2 i have entered the following formula:

    =IF($D2="","",
    IF(ISNUMBER(SEARCH("missing",$D2)),"Missing",
    IF(ISNUMBER(SEARCH("new",$D2)),"new",
    IF(ISNUMBER(SEARCH("*upgrade*",$D2)),"upgraded",
    IF(ISNUMBER(SEARCH("*error*",$D2)),"error",
    " ")))))

    It works but only returns the first value found. Is there a way to return ALL matches found? See attachedBook1.xlsx
    Last edited by katie88; 02-03-2015 at 08:27 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,228

    Re: How to extract multiple words from one cell

    Hi Katie and welcome to the forum,

    Something like this perhaps? First two works only looked for in this formula.

    =CONCATENATE(IF(ISNUMBER(SEARCH("missing",$D2)),"Missing",""),IF(ISNUMBER(SEARCH("New",$D2))," New",""))
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-03-2015
    Location
    Saint John, NB
    MS-Off Ver
    2012
    Posts
    3

    Talking Re: How to extract multiple words from one cell

    oh my gosh!! Do you have any idea how much time i wasted today trying to figure this out? LOL
    Thank you soooo much!!
    I'm sure you will be hearing from me again, Excel formulas are so confusing sometimes.
    Thanks again!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,049

    Re: How to extract multiple words from one cell

    Split the IFs ... don't nest them ... and concatenate the results, perhaps separated by a space.


    Formula: copy to clipboard

    =IF($D2="","",TRIM(
    IF(ISNUMBER(SEARCH("missing",$D2)),"Missing ","") &
    IF(ISNUMBER(SEARCH("new",$D2)),"new ","") &
    IF(ISNUMBER(SEARCH("*upgrade*",$D2)),"upgraded ","") &
    IF(ISNUMBER(SEARCH("*error*",$D2)),"error ","") ))




    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    02-03-2015
    Location
    Saint John, NB
    MS-Off Ver
    2012
    Posts
    3

    Re: How to extract multiple words from one cell

    Thank you so much! This works great too. So glad i joined!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,049

    Re: How to extract multiple words from one cell

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Extract multiple fixed format words from string
    By chewiezizi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 02:14 PM
  2. Replies: 7
    Last Post: 02-25-2014, 02:00 AM
  3. Replies: 5
    Last Post: 01-10-2013, 09:51 AM
  4. Extract particular words from a cell
    By DeepakS in forum Excel General
    Replies: 2
    Last Post: 08-22-2011, 08:58 AM
  5. [SOLVED] extract key words/data from multiple files -dump in new worksheet
    By MikeR-Oz in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 03-20-2006, 04:15 AM

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