+ Reply to Thread
Results 1 to 3 of 3

Remove Commas & Middle Initial, Flip First and Last Name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Remove Commas & Middle Initial, Flip First and Last Name

    I have 2 files with thousands of names and need to manipulate the format of the names so that they match. Is there a formula I can use to make the names in one file formatted like the other? Thank you!

    File 1:

    Smith,John E
    Johnson,Ashley T
    Loeb,Steve K

    File 2:

    John Smith
    Ashley Johnson
    Steve Loeb

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Remove Commas & Middle Initial, Flip First and Last Name

    Good day,

    Use below code and drag below assuming your name is in cell A1

    =MID(A1,FIND(",",A1)+1,LEN(A1)-FIND(",",A1)-1)&" "&LEFT(A1,FIND(",",A1)-1)
    Press on the star icon if you like this post

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove Commas & Middle Initial, Flip First and Last Name

    or If You like VBA like me You can use this small UDF
    Function name(rng)
    
    Dim tb As Variant
    
    tb = Split(Left(rng, Len(rng) - 2), ",")
    
    name = tb(1) & " " & tb(0)
    
    End Function
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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