+ Reply to Thread
Results 1 to 4 of 4

Converting Names

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2003
    Posts
    2

    Converting Names

    I have a large spreadsheet with last names in the format in the same column

    FName LName

    would like to convert that to

    LName, FName

    all in one column

    Example

    Mike Trout becomes Trout, Mike

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

    Re: Converting Names

    Like this...

    A1 = Mike Trout

    This formula entered in B1:

    =MID(A1,FIND(" ",A1)+1,20)&", "&LEFT(A1,FIND(" ",A1)-1)

    However, are there any 3 word names?

    That formula will work on a name like Eddie Van Halen but it won't work on a name like Betty Jo Spickerman.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  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: Converting Names

    Or in case there is a middle name:

    Formula: copy to clipboard
    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",30)),30))&", "&SUBSTITUTE(A1,TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",30)),30)),"")


    v A B
    1 George Lucas Lucas, George
    2 Brad Pitt Pitt, Brad
    3 George Timothy Clooney Clooney, George Timothy
    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
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Converting Names

    Quote Originally Posted by AlKey View Post
    =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",30)),30))&", "&SUBSTITUTE(A1,TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",30)),30)),"")
    That handles 2 word first names but fails on 2 word last names.

    If there are 2 word first and last names it is not possible to do this with 100% accuracy.

+ 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. Help With Converting State Names to Abbreviations
    By jongillman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-04-2015, 05:14 AM
  2. Converting names
    By profitdr123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2015, 05:02 PM
  3. [SOLVED] converting names format
    By profitdr123 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-07-2015, 12:23 PM
  4. Converting IP addresses into Office names.
    By Paulibox in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-18-2013, 04:40 AM
  5. Help converting volatile Defined Names
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-17-2012, 05:18 PM
  6. Converting Dates to Actual Day Names
    By scarames in forum Access Tables & Databases
    Replies: 6
    Last Post: 05-04-2010, 05:11 PM
  7. Converting Names to a number (Encryption)
    By BernieL in forum Excel General
    Replies: 0
    Last Post: 03-23-2009, 12:04 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