+ Reply to Thread
Results 1 to 6 of 6

Splitting First and Last Names of a 3 Word Name

  1. #1
    Registered User
    Join Date
    04-13-2013
    Location
    Calcutta
    MS-Off Ver
    Excel 2013
    Posts
    87

    Splitting First and Last Names of a 3 Word Name

    Hi

    I have a spreadsheet containing a column (B) of full names, which consists of 2,3 or even 4 word names.

    Kindly advise how I can split them up in 2 columns as First and Last Name


    Many Thanks

  2. #2
    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,929

    Re: Splitting First and Last Names of a 3 Word Name

    Try this (I gave you 1 for middle name too...
    A
    B
    C
    D
    2
    aa bb cc aa bb cc
    3
    aa bb cc aa bb cc

    Option 1...
    B2=LEFT(A2,SEARCH(" ",A2,1)-1)
    C2=MID(A2,LEN(B2)+2,LEN(A2)-LEN(B2)-LEN(D2)-2)
    D2=RIGHT(A2,LEN(A2)-FIND("*",SUBSTITUTE(A2," ","*",LEN(A2)-LEN(SUBSTITUTE(A2," ","")))))

    OR option 2...
    B3=TRIM(MID(SUBSTITUTE($A3," ",REPT(" ",LEN($A3))),LEN($A3)*(COLUMNS($A$3:A3)-1)+1,LEN($A3)))
    copied across
    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

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Splitting First and Last Names of a 3 Word Name

    Removed by JT

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Splitting First and Last Names of a 3 Word Name

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



    A
    B
    C
    1
    1st Mid1 Mid2 Lst
    1st
    Lst
    2
    1st Lst
    1st
    Lst
    3
    1st Mid1 Lst
    1st
    Lst
    Dave

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

    Re: Splitting First and Last Names of a 3 Word Name

    Assuming you have b1 name

    Then Try

    C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy towards the cell for last name
    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)

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Splitting First and Last Names of a 3 Word Name

    Quote Originally Posted by probuddha View Post
    I have a spreadsheet containing a column (B) of full names, which consists of 2,3 or even 4 word names.

    Kindly advise how I can split them up in 2 columns as First and Last Name
    This is impossible to do with 100% accuracy.

    Consider these 2 names:

    Eddie Van Halen
    Betty Jo Spickerman

    One is a 2 word last name and the other is a 2 word first name.

    How would we tell Excel to differentiate one from the other?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Splitting Initials and last names ?
    By foelie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2016, 04:39 PM
  2. Splitting Names
    By sherlock1241 in forum Excel General
    Replies: 4
    Last Post: 06-04-2015, 01:53 PM
  3. [SOLVED] Splitting names
    By rwl518p in forum Excel General
    Replies: 4
    Last Post: 09-04-2012, 05:23 PM
  4. Splitting Competition names
    By adinnin in forum Excel General
    Replies: 6
    Last Post: 11-16-2010, 11:05 AM
  5. splitting names
    By jweaver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2010, 04:05 PM
  6. Splitting first and last names
    By DLeland in forum Excel General
    Replies: 3
    Last Post: 12-28-2008, 03:22 PM
  7. splitting out names
    By craigster in forum Excel General
    Replies: 2
    Last Post: 04-25-2008, 05:43 PM

Tags for this Thread

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