+ Reply to Thread
Results 1 to 4 of 4

moving the 2nd word in a cell in front of the first word

  1. #1
    Registered User
    Join Date
    11-06-2007
    Posts
    1

    moving the 2nd word in a cell in front of the first word

    Hello.

    I tried to search but it's been difficult

    I have a huge list of names, but I need to fix the formatting. Currently it's First Name space Last name , ie. Bob Smith , and i need this list to be Last name comma first name .. Smith, Bob

    How do I make a macro that finds the 2nd word in a cell, moves that word in front of the first word then adds a comma+space so that it reads correctly?

    Thanks for all your help

    -Jeff
    California

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    You can do this without code, e.g.:

    Please Login or Register  to view this content.

  3. #3
    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
    Link should help

    http://www.cpearson.com/excel/FirstLast.htm

    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 !!!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522
    Back up first and try
    Please Login or Register  to view this content.

+ 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