+ Reply to Thread
Results 1 to 6 of 6

Extract specific words/strings from a cell

  1. #1
    Registered User
    Join Date
    04-06-2017
    Location
    Davenport, Iowa
    MS-Off Ver
    office 365 ProPlus
    Posts
    3

    Question Extract specific words/strings from a cell

    Hello,

    I need help extracting words from a string.... example:

    String: TV-Show - BACK LH BS-PI

    I need to extract "Show" into another cell. "Show" can also be a few other words like "channel" and "next channel". Please help!!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract specific words/strings from a cell

    try: =IFERROR(TRIM(MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1)),"Check characters")




    If the basic problem is solved
    - it's always a good practice to show respect to the person(s) who have helped you
    - is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
    - mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,

    If you did it - ignore this post, if not - just do it
    Thanks

    Last edited by sandy666; 04-06-2017 at 05:53 PM. Reason: TRIM added

  3. #3
    Registered User
    Join Date
    04-06-2017
    Location
    Davenport, Iowa
    MS-Off Ver
    office 365 ProPlus
    Posts
    3

    Re: Extract specific words/strings from a cell

    worked like a charm! Thank you!!!

    one last request...this one maybe more difficult...

    I now need to extract the second half of that same string to another cell:

    String: TV-Show - BACK LH BS-PI

    "BACK LH BS"..."PI" not included... this string can also be something like "TB" or "RHS BS REAR"... and "TV-Show" can be something like "TV-new channel" or "TV-remote"...

    thank you!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract specific words/strings from a cell

    try in C1 (if previous formula was in B1)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I assume there is always something like "-" around the text what you want to extract

    or
    A1 your text
    B1 this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    drag it from B1 to C1 and next drag both down
    Last edited by sandy666; 04-07-2017 at 11:34 AM. Reason: next formula added

  5. #5
    Registered User
    Join Date
    04-06-2017
    Location
    Davenport, Iowa
    MS-Off Ver
    office 365 ProPlus
    Posts
    3

    Re: Extract specific words/strings from a cell

    the first one worked perfectly. thank you!!!

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract specific words/strings from a cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. I need to extract the last part of a specfic strings and move this into specific column
    By Ciaran0612 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-30-2015, 02:34 PM
  2. [SOLVED] looking formula for Extract Specific WORDs in existing LONG Words
    By santosh226001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2013, 08:21 AM
  3. How can i extract specific words from a cell?
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 06-17-2013, 12:27 PM
  4. Macro to extract strings between key words
    By aillil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 09:51 AM
  5. Extract specific strings within a cell macro
    By ardniw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2013, 03:41 AM
  6. Replies: 3
    Last Post: 02-25-2013, 08:11 AM
  7. Extract specific words from cells
    By Santa-D in forum Excel General
    Replies: 6
    Last Post: 06-18-2006, 11:10 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