+ Reply to Thread
Results 1 to 20 of 20

Separating the full name into First and Last name (and middle maybe) - is this possible?

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Separating the full name into First and Last name (and middle maybe) - is this possible?

    Hello.

    I have downloaded 2 files from different programs.

    One shows full name.
    The other splits to First, Last.

    I would like to combine these file and so I was wondering if there is a way to make excel separate the full name into FIRST, LAST (so they match).

    Wouldn't want to do this manually (:

    Thank you!

  2. #2
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Welcome. Better upload a sample file..

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    In cell A2 enter the name "Michael Jones"

    In Cell B2 enter:-
    Please Login or Register  to view this content.
    In Cell C2 enter:_
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Ok.
    Here.
    (nothing much to show here though)
    SAMPLE
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Quote Originally Posted by mehmetcik View Post
    In cell A2 enter the name "Michael Jones"

    In Cell B2 enter:-
    Please Login or Register  to view this content.
    In Cell C2 enter:_
    Please Login or Register  to view this content.

    WOWOWOWO !!!!

    U R A GENIUS!!!

    It works!

    Pardon my audacity (I am grateful for your help), is there a way to not include the MIDDLE NAME in the last name result?

    This
    Dolores F. Defazio

    Turned his LAST NAME into this:
    F. Defazio
    Last edited by benyben123; 09-12-2013 at 04:47 PM.

  6. #6
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Put Dolores F. Defazio in A1 and in B1
    Please Login or Register  to view this content.
    BTW if * denotes space, I've assumed it's Dolores*F.*Defazio..

  7. #7
    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: Separating the full name into First and Last name (and middle maybe) - is this possibl

    If you want First, Middle and Last names in separate columns use this

    in B1
    =LEFT(A1,FIND(" ",A1)-1)
    in C1
    =IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=1,"",MID(A1,FIND(" ",A1)+1,1))
    In D1
    =IF(C1="",MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1)+1),TRIM(MID(A1,FIND(" ",A1,FIND(" ",A1)+1),LEN(A1)-(FIND(" ",A1)))))
    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

  8. #8
    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,946

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Your data is very incosistant...
    donald boomer
    roei n kind
    kimber L. Ron
    James A. Hayden III

    It will be a lot simpler if you can get some uniformity in your data - all middle initials have (or dont have) a period. And how would you want to handle the "Heyden III"?
    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

  9. #9
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Quote Originally Posted by FDibbins View Post
    Your data is very incosistant...
    donald boomer
    roei n kind
    kimber L. Ron
    James A. Hayden III

    It will be a lot simpler if you can get some uniformity in your data - all middle initials have (or dont have) a period. And how would you want to handle the "Heyden III"?


    I know I am new here, but in my eyes - you guys are magicians!!!
    I am shocked by these formals.
    Thank you so much.

    GIS2013 - yours did not work for me ): Still came up with middle name.
    Alkey - yours worked! But I still only want to seperate into two, not three (first + middle initial, last)
    [ oh.... so i can just use the 3rd part of the formula....? ]
    FDibbins - you are so right! (: Most of these follow the usual way of writing:

    JANE X. SMITH

    haha about the Hayden III


    Again, thank you all so so much for the help!!!
    Last edited by benyben123; 09-12-2013 at 05:20 PM.

  10. #10
    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,946

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    If you are looking up the "splt" names into the combined names, this will work for you...
    =iferror(VLOOKUP(A1&"*"&B1,'[full%20name(1).xlsx]Sheet1'!$A$1:$A$5,1,0),""

  11. #11
    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: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Here is corrected formula

    First and Middle
    B1

    =IFERROR(LEFT(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1))),LEFT(A1,FIND(" ",A1)-1))

    Last Name
    C1

    =TRIM(SUBSTITUTE(A1,IFERROR(LEFT(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1))),LEFT(A1,FIND(" ",A1)-1)),""))

  12. #12
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Quote Originally Posted by AlKey View Post
    Here is corrected formula

    First and Middle
    B1

    =IFERROR(LEFT(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1))),LEFT(A1,FIND(" ",A1)-1))

    Last Name
    C1

    =TRIM(SUBSTITUTE(A1,IFERROR(LEFT(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1))),LEFT(A1,FIND(" ",A1)-1)),""))



    WORKS!!!! Awesome!

    Thank you thank you!

  13. #13
    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: Separating the full name into First and Last name (and middle maybe) - is this possibl

    You're Welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  14. #14
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Now - What do you do if some filled WITH MIDDLE NAME and some DID NOT?



    I am afraid to ask, but I decided to give it a shot

  15. #15
    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,946

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Try this to pull in the last nane only...
    =MID(F1,SEARCH(" ",F1,LEN(LEFT(F1,SEARCH(" ",F1,1)-1))+LEN(F1)-LEN(SUBSTITUTE(F1," ","")))+1,99)
    For teh 1st name a simple...
    =LEFT(F1,SEARCH(" ",F1,1)-1)

  16. #16
    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: Separating the full name into First and Last name (and middle maybe) - is this possibl

    "Now - What do you do if some filled WITH MIDDLE NAME and some DID NOT?"

    I believe my formulas already addressed this issue.

  17. #17
    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: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Here is the spreadsheet with your examples.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    09-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2013
    Posts
    60

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Quote Originally Posted by AlKey View Post
    "Now - What do you do if some filled WITH MIDDLE NAME and some DID NOT?"

    I believe my formulas already addressed this issue.

    You are right!

    I appreciated you as much as i can (:
    Thanks so much!!!

    you saved my day - this is work stuff. thanks!

  19. #19
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  20. #20
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Separating the full name into First and Last name (and middle maybe) - is this possibl

    Hi

    the following will handle up to 4 names.

    In A1 enter first second third fourth

    in B1 enter
    Please Login or Register  to view this content.
    in C1 enter
    Please Login or Register  to view this content.
    in D1 enter
    Please Login or Register  to view this content.
    and in E1 enter
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-13-2013 at 03:29 PM.

+ 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. [SOLVED] How to convert First, Middle, Last name to Last, First Middle Initial with VBA
    By lwine in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2013, 03:33 PM
  2. Replies: 12
    Last Post: 01-30-2013, 07:32 PM
  3. Extracting the Middle Initial/Middle Name
    By akwishestofish in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-16-2012, 11:13 AM
  4. Replies: 3
    Last Post: 03-09-2012, 03:19 PM
  5. Replies: 2
    Last Post: 07-17-2008, 01:55 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