+ Reply to Thread
Results 1 to 4 of 4

Changing (First Name Middle Initial Last Name) to (Last Name, First Name Middle Initial)

  1. #1
    Registered User
    Join Date
    03-24-2011
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    16

    Changing (First Name Middle Initial Last Name) to (Last Name, First Name Middle Initial)

    I need to change a row of data from "John X Doe" with no period after the initial to "Doe, John X" - Thanks, just can't figure out how to deal with the middle initial. Also, some names don't have middle initials, so the standard formula that I have now works fine on those, just can't process the middle initial yet. Thanks!
    Last edited by chris0228; 03-09-2012 at 03:19 PM.
    Chris Hunt

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Changing (First Name Middle Initial Last Name) to (Last Name, First Name Middle Initia

    Try:
    Please Login or Register  to view this content.
    subbing A2 for cell reference.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Changing (First Name Middle Initial Last Name) to (Last Name, First Name Middle Initia

    give this a shot and see if it works for you

    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255))&", "&LEFT(A1,LEN(A1)-LEN(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255)))-1)
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  4. #4
    Registered User
    Join Date
    03-24-2011
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    16

    Re: Changing (First Name Middle Initial Last Name) to (Last Name, First Name Middle Initia

    NBVC, you're saving my butt today, thanks alot, works flawlessly!! DGagnon, thanks to you for your quick response. Have a great day guys!!

+ 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