+ Reply to Thread
Results 1 to 4 of 4

Text to column - first word in first column rest in the the 2nd column

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Text to column - first word in first column rest in the the 2nd column

    Hi,

    I need to separate a lot of values in on cell. I guess the best way to do it is through the text to column function. But I want the first word in the cell to remain in the first column and the rest in the 2nd column. Right now I able just to put one word in one column which results in 6 columns.

    Is it possible to make it into two columns with the first word in the original column and the all the other words in the 2nd column?

    Thanks.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Text to column - first word in first column rest in the the 2nd column

    Assuming you have entered the values in cell A1 and the words are separated by space, then

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Is this what you want?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Text to column - first word in first column rest in the the 2nd column

    Or a slightly shorter method...
    =LEFT(A1,FIND(" ",A1,1)-1)
    and then
    =SUBSTITUTE(A1,A2&" ","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Text to column - first word in first column rest in the the 2nd column

    If you really want to use Text to Columns,
    First do a search and replace, find [spacebar], replace with [spacebar, spacebar, spacebar, ....]
    Now you can do a fixed width between the first and second words. Remove any other column breaks.
    Then reverse your search and replace to remove the extra spaces.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Select the last row in a column with data nd paste the value in the rest of the column
    By Sheldon Brooks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 05:33 AM
  2. Search For Word in One Column, If Exists Put Text In Another Column
    By biohazard35 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-20-2012, 05:33 PM
  3. Replies: 4
    Last Post: 08-01-2012, 09:50 AM
  4. VBA to enter a word, find said word in string of column & copy to another column
    By tuneloon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-29-2012, 11:59 AM
  5. 1 column text - 1 column one word
    By jewel56 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-29-2008, 05:05 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