+ Reply to Thread
Results 1 to 5 of 5

Changing order of names

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Chatham, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Changing order of names

    I'm working with a list of names and addresses; the names are mostly in this format: last name, comma, first name or names. The names are in column A, addresses are in B, City and State are in C, ZIP is in D.

    What I would like to do is employ a macro or formula to change names with commas (which now read last - comma - first) so that they read first-last. Is this possible without rewriting all 200 plus individually?

    I'll probably have to be led by the hand; I know virtually nothing about the advanced features of Excel. thanks in advance.

    Art

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Changing order of names

    Art,

    Welcome to the forum. Are you familiar with the "text to columns" feature of Excel?
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Changing order of names

    if at A1 so try it

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

  4. #4
    Registered User
    Join Date
    12-12-2012
    Location
    Chatham, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Changing order of names

    Quote Originally Posted by BB1972 View Post
    Art,

    Welcome to the forum. Are you familiar with the "text to columns" feature of Excel?
    No, I don't know about it. Can you explain?

    Art

  5. #5
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Changing order of names

    If you select COLUMN A, then on the DATA tab in the ribbon click Text to Columns, you can choose to separate the data in the cells in column A by various characters, such as comma, space etc. So if you choose "comma" as your separator and follow the instructions that follow, you should end up with the LAST names in column A (they will remain there), and the rest of the data (first name/s) will now occupy column B. (Make sure Column B is empty - insert a blank column if necessary, as this procedure will overwrite anything already in column B)

    You can now concatenate the contents of columns A & B as follows: in a blank column (assuming your page has headings) type in e.g. E2

    Please Login or Register  to view this content.
    This will combine the contents of B2 (which should contain a first name) and A2 (which should contain a last name), separated by a " " (space). Copy the formula down as far as required, and you should be sorted out.

    Let me know how you get on.

+ 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