+ Reply to Thread
Results 1 to 4 of 4

Rearange order of numbers from one cell to another cell

  1. #1
    Registered User
    Join Date
    01-07-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Cool Rearange order of numbers from one cell to another cell

    We have a series of numbers, which are several characters long. We want to change the first two numbers, to the 5th and 6th position, and the ones in the 5th and and 6th position to move to the 1st and 2nd position.

    Ex.
    282114778600220 convert to 142128778600220

    We have a column of these in our spreadsheet that we'd like to change. Is this possible?


    Here is attached spreadsheet, Column N is where the subject numbers are. and Column C is where I'd like the new rearranged numbers to be output.

    Thanks in Advance for your help.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Rearange order of numbers from one cell to another cell

    In N2 dragged down

    =REPLACE(REPLACE(N2,1,2,MID(N2,5,2)),5,2,MID(N2,1,2))

    Then you can copy > paste special > Values back into N if you want.

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Rearange order of numbers from one cell to another cell

    Hi,

    Put this formula in C2 cells and hit enter. And then you drag this formula to the entire column as required.


    =MID(N2, 5, 2) & MID(N2, 3, 2)&MID(N2, 1, 2)& MID(N2, 7, LEN(N2)-6)

    Regards,
    KK

  4. #4
    Registered User
    Join Date
    01-07-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Rearange order of numbers from one cell to another cell

    thanks for the quick help!

+ 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