+ Reply to Thread
Results 1 to 4 of 4

splitting data in one column into two columns

  1. #1
    Registered User
    Join Date
    05-23-2008
    Posts
    2

    splitting data in one column into two columns

    Hi, new here so forgive me if I'm doing something wrong. Can anyone tell me if this is possible?
    I have data in column A which is separated by a comma (lastname, firstname). I need to split it up into 2 columns without any commas
    Column A (last name) and Column B (first name)
    Can this be done easily. I have over 10,000 rows and only know to cut the first name out and paste into the new column. There's gotta be an easier way.

    Thanks for any help,
    Steven

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524
    Havee you tried TextToColumn ?
    If formula

    B1
    =Left(A1,Find(",",A1&",")-1)

    C1
    =Replace(A1,1,Find(",",A1&","),"")
    Last edited by jindon; 05-23-2008 at 01:55 AM.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi Steven,

    You could either use Excel's Text to Columns option from the Data menu (Excel 2003), or use the following formulas (which are based on an assumption that the data starts at A2 - change as required):

    First Name formula: =LEFT(A2,SEARCH(",",A2)-1)
    Last Name formula: =MID(A2,SEARCH(",",A2)+1,LEN(A2)-SEARCH(",",A2))

    HTH

    Robert

  4. #4
    Registered User
    Join Date
    05-23-2008
    Posts
    2

    text to columns worked perfectly

    Hi,
    Thanks for your help. The text to columns tool work perfectly. I never knew how to use that feature. Now I do. Thanks!

+ 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