+ Reply to Thread
Results 1 to 5 of 5

Firstname, Lastname > Lastname Firstname

Hybrid View

henrikb Firstname, Lastname >... 06-21-2007, 01:48 PM
VBA Noob Maybe ... 06-21-2007, 01:57 PM
daddylonglegs Try =MID(A1&"... 06-21-2007, 08:23 PM
henrikb Thanks to you also!! 06-22-2007, 04:59 AM
henrikb Thank You! This saved my day!! 06-22-2007, 04:58 AM
  1. #1
    Registered User
    Join Date
    03-20-2006
    Posts
    5

    Firstname, Lastname > Lastname Firstname

    Hello!
    I got 10.000 rows to convert from firstname, Lastname to "Lastname Firstname"
    (get rid of the ",")

    I have tried using the =LEFT() function and extracted the firstname but I can't find how to get the lastname properly.

    Can anyone assist please???

    Best regards
    /Henrik

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =PROPER(RIGHT(A1,LEN(A1)-FIND(",",A1)-1))&" "&PROPER(LEFT(A1,FIND(",",A1)-1))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    Try

    =MID(A1&" "&A1,FIND(",",A1)+2,LEN(A1)-1)

  4. #4
    Registered User
    Join Date
    03-20-2006
    Posts
    5

    Thanks to you also!!

    This really works!, Even shorter codes, and now I learned new things
    /Henrik

    Quote Originally Posted by daddylonglegs
    Try

    =MID(A1&" "&A1,FIND(",",A1)+2,LEN(A1)-1)

  5. #5
    Registered User
    Join Date
    03-20-2006
    Posts
    5

    Thank You! This saved my day!!

    Thanks alot, this really works!!
    /HEnrik

    Quote Originally Posted by VBA Noob
    Maybe

    =PROPER(RIGHT(A1,LEN(A1)-FIND(",",A1)-1))&" "&PROPER(LEFT(A1,FIND(",",A1)-1))

    VBA Noob

+ 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