+ Reply to Thread
Results 1 to 5 of 5

how to unsort data?

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    how to unsort data?

    after sorting data in ascending order, how do i unsort it to get back the original format? i can't find the option anywhere on the excel ribbon for this

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: how to unsort data?

    You can just use undo unless you are sorting with a macro which clears the undo stack (in versions up to 2003 anyway and 2007 as well I think).

    One way to preserve the order of a list would be to add a helper column to the original list with records numbers 1,2,3 in it and you would then be able to return the list to the original order at any point by sorting on that.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: how to unsort data?

    yea, i am using a macro... so the only way to undo a sort is with a helper column? and there is no other way?

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: how to unsort data?

    If the data was not sorted in any logical order in the first place and for whatever reason you needed to return it to the original order after sorting then it's probably the method I'd use. There are probably other ways but it's simple and effective.

    Dom

  5. #5
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: how to unsort data?

    ok nevermind, i pasted the original data, then cut it after the macro is run, so i preserve the original data

+ 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