+ Reply to Thread
Results 1 to 7 of 7

Split Names Into Seperate Columns

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    2

    Split Names Into Seperate Columns

    Hi Everyone - I have data of names that needs to be split into separate columns (first, last, middle). The problem is that the data is not consistent. Some is only first/last names, some is first/middle/last and some is only a middle initial. I have searched for an answer to this but haven't found one that solves the problem of the data not being consistant. Here's an example:

    Merlin Colin
    Shari Lynn Altenhof
    MICHELLE A. HILL
    Un Byung Yoon
    Aaron David Moore
    Shena C. Collins-Flores

    How can I get this split into three columns. First, Middle, Last

    I also have one other challenge... Once the data is split, I need to merge two first name columns into one. First & First. Is there a way to merge the data of two columns, while adding a space and "&" sign between the two names?

    Thanks for your help!

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Split Names Into Seperate Columns

    Hi ghenderson122

    How do we know which name is which!
    If you want to split it as it is, try Text to columns.

  3. #3
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Split Names Into Seperate Columns

    Hi - Welcome to the forum. Since your data is not consistent, you can achieve this by using delimter. To use this:

    1. Select your data, then press ALT + D + E,
    2. Select Delimited, press Next
    3. Select "Space" option
    4. Select "Next" and then "Finish"

    This will split all your data into 3 columns - hopefully the way you wanted.

    On your second part, to merge two columns use the below (I am assuming that the two cells containing the names are E2 and F2):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hopefully this is what you want to achive.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  4. #4
    Registered User
    Join Date
    11-05-2012
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Split Names Into Seperate Columns

    Thank you for the quick response... This works, but there is one problem. If one of the cells only contained a first and last name, the last name goes into the second column, which is where the middle names/initials are going. Is there a way to get those into the 3rd column?

    Thanks!



    Quote Originally Posted by kbkumar View Post
    Hi - Welcome to the forum. Since your data is not consistent, you can achieve this by using delimter. To use this:

    1. Select your data, then press ALT + D + E,
    2. Select Delimited, press Next
    3. Select "Space" option
    4. Select "Next" and then "Finish"

    This will split all your data into 3 columns - hopefully the way you wanted.

    On your second part, to merge two columns use the below (I am assuming that the two cells containing the names are E2 and F2):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hopefully this is what you want to achive.

  5. #5
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Split Names Into Seperate Columns

    for example your data want to separate at A1 and want to separate at B1, C1 and so on

    first formula at B1 than drug to the right

    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",100)),(COLUMNS($A:A)-1)*100+1,100))

  6. #6
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Split Names Into Seperate Columns

    Hi - To get the last name in 3rd column where there are only first name and last names, use the below formulas:

    Assumption: Raw data (after using delimiter contains in columns E, F and G), E2 contains first name, F2 contains Middle name and G2 last name.

    Use this in cell I2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    J2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    K2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and drag down, Now you will see "Colin" (from the first record) appearing in the last name column.

    Hope this helps. Sorry, am unable to upload the workbook as of now, but can do that later today.




    Quote Originally Posted by ghenderson122 View Post
    Thank you for the quick response... This works, but there is one problem. If one of the cells only contained a first and last name, the last name goes into the second column, which is where the middle names/initials are going. Is there a way to get those into the 3rd column?

    Thanks!

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Split Names Into Seperate Columns

    See if this workbook helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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