+ Reply to Thread
Results 1 to 15 of 15

Full Name to Last Name, First Name Middle Name (or initial)

  1. #1
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Full Name to Last Name, First Name Middle Name (or initial)

    Hi there,
    I have not located a post that helps me resolve this, and I would be so grateful to receive some help.

    This is the data I have in one column:

    Alfredo C. Piatti
    Antonin Dvorak
    Antonio Vivaldi
    Aram Ilyich Khachaturian

    I would like to organize by Last Name, First Name Middle Name (or initial):

    Piatti, Alfredo C.
    Dvorak, Antonin
    Vivaldi, Antonio
    Khachaturian, Aram Ilyich

    Thanks very much!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Is this a TRULY representative sample? Is the last word in the source data always the surname? Are there any variations?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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: Full Name to Last Name, First Name Middle Name (or initial)

    Try this
    Enter formula in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Alfredo C. Piatti* Piatti*, Alfredo C.
    2 Antonin Dvorak* Dvorak*, Antonin
    3 Antonio Vivaldi* Vivaldi*, Antonio
    4 Aram Ilyich Khachaturian Khachaturian, Aram Ilyich

    There is a char 160 in these strings
    here is an adjusted formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Alfredo C. Piatti* Piatti, Alfredo C.
    2 Antonin Dvorak* Dvorak, Antonin
    3 Antonio Vivaldi* Vivaldi, Antonio
    4 Aram Ilyich Khachaturian Khachaturian, Aram Ilyich
    Last edited by AlKey; 01-06-2017 at 01:46 PM.
    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

  4. #4
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Thank You AliGW.
    Yes the last word is always the surname with no variations. Other examples:

    Ludwig van Beethoven
    Luigi Boccherini
    Max Bruch
    Max Bruch
    Mazas Jacques
    Nicolo Paganini
    Pablo de Sarasate
    Peter Ilyich Tchaikovsky
    Pierre Gavinies
    Pierre Rode
    Richard Hofmann
    Robert Wohlfahrt
    Rodolphe Kreutzer
    Sebastian Lee

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    You may not have spotted that AlKey gave you a solution above in post #3.

  6. #6
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Thank You AlKey,
    This seems to work only for the 1st listing Alfredo C. Piatti. The others show Comma Space Full Name. Here is what I see:

    =SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(L3," ",REPT(" ",99)),99))&", "&SUBSTITUTE(L3,TRIM(RIGHT(SUBSTITUTE(L3," ",REPT(" ",99)),99)),""),CHAR(160),"")

    Composers.JPG

  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: Full Name to Last Name, First Name Middle Name (or initial)

    It works fine for me
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Name Last, First
    2 Ludwig van Beethoven* Beethoven, Ludwig van
    3 Luigi Boccherini* Boccherini, Luigi
    4 Max Bruch* Bruch, Max
    5 Max Bruch* Bruch, Max
    6 Mazas Jacques Jacques, Mazas
    7 Nicolo Paganini* Paganini, Nicolo
    8 Pablo de Sarasate* Sarasate, Pablo de
    9 Peter Ilyich Tchaikovsky* Tchaikovsky, Peter Ilyich
    10 Pierre Gavinies Gavinies, Pierre
    11 Pierre Rode* Rode, Pierre
    12 Richard Hofmann Hofmann, Richard
    13 Robert Wohlfahrt Wohlfahrt, Robert
    14 Rodolphe Kreutzer* Kreutzer, Rodolphe
    15 Sebastian Lee Lee, Sebastian
    16 Alfredo C. Piatti* Piatti, Alfredo C.
    17 Antonin Dvorak* Dvorak, Antonin
    18 Antonio Vivaldi* Vivaldi, Antonio
    19 Aram Ilyich Khachaturian Khachaturian, Aram Ilyich

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Where did the asterisks come form?

  9. #9
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    My data does not have asterisks. Is this something I need to add?

  10. #10
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    There must be something strange with my data, because your formula works when I type in the full name but not when I use in my spreadsheet or copy and paste from my spreadsheet to another. Any suggestion on this? Thanks very much for your help!

  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: Full Name to Last Name, First Name Middle Name (or initial)

    Quote Originally Posted by blawless View Post
    My data does not have asterisks. Is this something I need to add?
    The asterisks come from the dirty data. Some spaces are actually char(160),nonbreaking space character (Unicode value of 160).
    The formula I provided will remove this character.

  12. #12
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Thank You. I am baffled that this works only when I type the names into a new column.Composers2.JPG

  13. #13
    Registered User
    Join Date
    01-06-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2007
    Posts
    12

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    It worked perfect in Google Sheets. I must have something going on with my Excel. Thank You so much for your help!

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

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    Just a thought...

    You have this name:

    Aram Ilyich Khachaturian

    And want it in this format:

    Khachaturian, Aram Ilyich

    So, that means Ilyich is the middle name.

    What if you had a name like:

    Eddie Van Halen

    Van is not the middle name!

    How can Excel distinguish that one is a middle name while the other is a 2 word last name?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Full Name to Last Name, First Name Middle Name (or initial)

    viz van Beethoven up above in post #7!

+ 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: 1
    Last Post: 09-14-2016, 04:55 AM
  2. Replies: 3
    Last Post: 03-05-2015, 02:33 PM
  3. [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
  4. Extracting the Middle Initial/Middle Name
    By akwishestofish in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-16-2012, 11:13 AM
  5. Replies: 3
    Last Post: 03-09-2012, 03:19 PM
  6. Remove middle initial from "first name middle initial"
    By Justin F. in forum Excel General
    Replies: 15
    Last Post: 09-26-2005, 02:05 PM
  7. [SOLVED] First name, Middle Initial
    By wnfisba in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 10:05 AM

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