+ Reply to Thread
Results 1 to 7 of 7

Split cell to seperate ID number from Name

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Split cell to seperate ID number from Name

    Attached is a sample of a book we create. Currently in Column B is the last name and ID number, a comma, and the first name. I would like to split this so in column C is the ID number, and in column D is the Last name, a comma, and the first name. I know i can do it manually, but I am hoping there is a formula that could do this for us. The length of the ID number is not always going to be the same, but the format of column B should be a constant.

    Any thoughts?
    Attached Files Attached Files
    "Laugh? I thought I'd die!"

    Jimbo?

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Split cell to seperate ID number from Name

    Have you tried TextToColumns? I had to do it twice; fixed width for the first layer and delimited for the second layer.
    Attached Files Attached Files

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Split cell to seperate ID number from Name

    Try in C2:

    Please Login or Register  to view this content.
    D2:

    Please Login or Register  to view this content.
    Quang PT

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Split cell to seperate ID number from Name

    one way of doing it
    Attached Files Attached Files

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Split cell to seperate ID number from Name

    To get NS

    =MID(TRIM(B2),FIND(" ",TRIM(B2))+1,6)+0

    for Name

    =SUBSTITUTE(TRIM(SUBSTITUTE(TRIM(B2),C2,""))," ,",",")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Split cell to seperate ID number from Name

    Here is my way
    For NS
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Check the attached file:-
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  7. #7
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: Split cell to seperate ID number from Name

    Thank you all! Problem solved!!

+ 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. Replies: 7
    Last Post: 08-12-2014, 10:40 AM
  2. Split cell contents, paste segments into seperate cells in diff. Workbook
    By youngtusk87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2012, 04:40 PM
  3. Split number and text into two seperate collums
    By madsff in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2010, 07:12 AM
  4. [SOLVED] How to seperate data in a cell which is split by a comma
    By Eamonn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2006, 04:35 AM
  5. [SOLVED] Split Cell Into Seperate Rows
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2005, 02:20 PM

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