+ Reply to Thread
Results 1 to 16 of 16

moving last word from one column to another?

  1. #1
    Registered User
    Join Date
    05-03-2007
    Posts
    13

    moving last word from one column to another?

    Hello,
    Basically I have a list of peoples first and last that I am trying to import into another application. My problem is that the application wants the first names in column A and the last names in column B. Right now my excel has the first and last names in the A column. I would just copy and paste, but there are 2,600! I just want to move the last word in column A to column B...any ideas?

    Thanks!
    Laura

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you only have First/Last names and no middle names/initials, then...


    select column A and go to Data |Text to columns.

    Select Delimited and click Next

    Select Space and click Finish.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Laura. If there is only one space in the cell, you can use Data > Text to Columns, use delimited, and use a space as the delimiter. This will split the first and last names. Be sure column B is blank before doing this, though.

    HTH

    Jason

  4. #4
    Registered User
    Join Date
    05-03-2007
    Posts
    13
    That almost worked but some of the names have one first name and some have two and several have &.

    Example:
    First Name
    Kathy Acker
    Stan & Irene Ackers
    Jessie & Ofelia Acosta
    Richard & Mildred Adamek
    Donna Adams
    Doris Adams
    Jerry & Jan Adams

    Anyway to fix that? I wish there was a way to just move the last word into the next column.

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this, your text in A1 and this in B1

    =RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dt42645
    That almost worked but some of the names have one first name and some have two and several have &.

    Example:
    First Name
    Kathy Acker
    Stan & Irene Ackers
    Jessie & Ofelia Acosta
    Richard & Mildred Adamek
    Donna Adams
    Doris Adams
    Jerry & Jan Adams

    Anyway to fix that? I wish there was a way to just move the last word into the next column.
    Try:

    =MID(A1,FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,LEN(A1))

    in B1 copied down

  7. #7
    Registered User
    Join Date
    05-03-2007
    Posts
    13
    That worked but only for the first row. I did highlight all of column B.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dt42645
    That worked but only for the first row. I did highlight all of column B.
    Don't highlight anything.

    Select Cell B1 and enter the formula....then copy it down the column by double-clicking on the little black square in the bottom right corner of cell B1.

  9. #9
    Registered User
    Join Date
    05-03-2007
    Posts
    13
    WOW that worked!! You guys are geniuses!! Now is there anyway to take off the last names in the first column?

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dt42645
    WOW that worked!! You guys are geniuses!! Now is there anyway to take off the last names in the first column?
    In 2 steps:

    In C1, enter formula: =SUBSTITUTE(A1,B1,"") and copy it down.

    Now select Column C and copy it, then go to A1 and select Paste Special from the Edit menu. Select Values. Click Ok.

    Now you can delete column C.

  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    In C1 put this

    =LEFT(A1,LEN(A1)-LEN(B1)-1)

  12. #12
    Registered User
    Join Date
    05-03-2007
    Posts
    13
    Ok that all worked. Thank you so much...you saved me at least 3 hours!

  13. #13
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to help - thanks for the feedback

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by dt42645
    Ok that all worked. Thank you so much...you saved me at least 3 hours!
    You;re welcome!

  15. #15
    Registered User
    Join Date
    09-01-2016
    Location
    Canberra, Australia
    MS-Off Ver
    2010
    Posts
    3

    Re: moving last word from one column to another?

    Hi Guys


    sorry to bug you all but upon pasting the formula =MID(A1,FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,LEN(A1))

    I don't seem to be able to get the A1 fill down to update to A2 etc.

    Any ideas on how to fix that?

  16. #16
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: moving last word from one column to another?

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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