+ Reply to Thread
Results 1 to 5 of 5

Formula to separate string of text into single words

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Formula to separate string of text into single words

    I have column A1 through A100 each with 3 to 5 words in them, all of varying character lengths. What formulas could I use to accomplish separating those into single words over cells B1 through F1? It seems it would be some combination of LEN, SEARCH, TRIM, RIGHT, LEFT, etc, but I can't wrap my head around it exactly. See attached image for example.


    I'm trying to determine formulas that could go into B1 through F1 and be filled down and would work for all strings in column A.

    Thanks.
    Attached Images Attached Images

  2. #2
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Formula to separate string of text into single words

    Stay of the active cell en run this macro

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to separate string of text into single words

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    The dog is good
    The
    dog
    is
    good
    ------
    2
    Everyone is in the house
    Everyone
    is
    in
    the
    house
    3
    Where are we
    Where
    are
    we
    4
    I'm here
    I'm
    here
    5
    Here we go again
    Here
    we
    go
    again
    6
    This is better than yesterday
    This
    is
    better
    than
    yesterday


    This formula entered in B1:

    =TRIM(MID(SUBSTITUTE(" "&$A1&" "," ",REPT(" ",255)),COLUMNS($B1:B1)*255,255))

    Copy down as needed then across until you get a column full of blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    08-22-2013
    Location
    USA
    MS-Off Ver
    MS Office for Office 365 (Latest - 32-bit)
    Posts
    107

    Re: Formula to separate string of text into single words

    Tony, fantastic!! That works perfectly. Thanks so much!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to separate string of text into single words

    You're welcome. Thanks for the feedback!

+ 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. How to extract diffrent words from text string with same formula
    By Zeb1980 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-21-2016, 07:50 AM
  2. Extract all words in text string, put them into a single column
    By StartRunMSPaint in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2016, 06:35 PM
  3. [SOLVED] Formula or function to separate string of text in a cell to multiple columns
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-29-2016, 12:10 PM
  4. Replies: 0
    Last Post: 06-16-2015, 08:52 AM
  5. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  6. [SOLVED] Text formula to separate words in glossary
    By patriciabr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2013, 11:19 AM
  7. [SOLVED] Need to separate continuous capital words of a string within a single cell
    By anchuri_chaitanya in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2013, 02:56 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