+ Reply to Thread
Results 1 to 5 of 5

Swap order of words in a cell

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Swap order of words in a cell

    Hi,

    I have a list of names that are ordered within a cell as "First Name" "Last Name" but want to swap it around to read "Last Name" "First Name". Is there a simple way to do this?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Swap order of words in a cell

    maybe:
    =MID(A1,FIND(" ",A1,1)+1,100)&" "&LEFT(A1,FIND(" ",A1,1)-1)
    if there are only two names/words in each cell.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Swap order of words in a cell

    Hi and welcome to the forum.

    Try this...
    =RIGHT(A1,LEN(A1)-FIND(" ",A1,1))&" "&LEFT(A1,FIND(" ",A1,1)-1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-14-2013
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Swap order of words in a cell

    The first suggestion didn't work but the Right function posted by Ford has worked, thanks very much all.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Swap order of words in a cell

    Thanks for the feedback, happy to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to use mutiple words in any order to display a cell
    By Eagleintl1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-30-2013, 06:00 PM
  2. Rearrange order of words
    By NPM2 in forum Excel General
    Replies: 3
    Last Post: 11-22-2009, 06:58 PM
  3. Remove rows that have same words in different order?
    By mattm111 in forum Excel General
    Replies: 1
    Last Post: 09-16-2007, 02:58 PM
  4. Remove rows with same words in different order?
    By mattm111 in forum Excel General
    Replies: 0
    Last Post: 07-19-2007, 11:55 PM
  5. [SOLVED] random order in a set of words in 1 column
    By Beckbeck in forum Excel General
    Replies: 3
    Last Post: 05-27-2005, 01:05 AM

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