+ Reply to Thread
Results 1 to 5 of 5

Invert last name / first name (not comma separated)

  1. #1
    Registered User
    Join Date
    04-29-2008
    Posts
    1

    Invert last name / first name (not comma separated)

    Hi,

    I was wondering if anyone could point me in the right direction on this. Basically I have a dataset in which the names are stored in the format DOE John. The designated last name is always in Upper case and the first name is always in Proper case. What I would like to do is cycle through each cell and switch the Uppercase word(s) with the Proper case ones.

    A secondary problem is that some of the cells contain two values. These are separated by commas so pretty easy to parse and deal with, but I'm unsure again of the best way to approach this. Ideally I want to process everything in the cell at once and I have no need to map the second values (where they occur) to a new field.

    Any help would be greatly appreciated!!

    Kieran

    PS

    Here's a small sample of what I'm up against:

    PAWEEN PURIJITPANYA Yongyoot Thongkongtoon,PARKPOOM WONGPOOM Banjong Pisanthanakun
    COLELL Judith
    TSUKAMOTO Rempei
    ROMANO Peris,SOROGOYEN Rodrigo

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try this macro and assocated function

    Please Login or Register  to view this content.
    Open the VBA editor (Alt F11), add a new module (Insert - module) and paste in the above.
    Martin

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525
    Just make them Proper case ?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245
    Maybe try this one :
    Please Login or Register  to view this content.
    Charlize

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi ,Yet Again!!
    Please Login or Register  to view this content.
    Regards Mick

+ 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