Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

How do you save a sort in Excel?

Latest post Wed, Jan 25 2012 7:20 AM by Andy. 10 replies.
  • Fri, May 8 2009 2:53 PM

    • pappy1961
    • Not Ranked
    • Joined on Fri, May 8 2009
    • Posts 1
    • Points 37

    How do you save a sort in Excel?

    Hello,

    I have several groups of data and I have to sort these data by the same sort criteria. However when I go from group to group (they are seperated by several rows for subtotals, etc.) I have to reset the sort request.

    Do you know how I might be able to save the sort and not have to reset it each time I move down to another group of data? I have looked around at Microsoft and asked some peers and they don't know.

    There has to be a way..........surely.

    Thank you in advance for your assistance.

    DDenton / Pappy1961

    • Post Points: 37
  • Sat, May 9 2009 2:08 AM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 543
    • Points 9,287
    • MVP

    Re: How do you save a sort in Excel?

    I'm not really sure what you mean.

    In Excel 2007 you may have two options that help.

    1. A Custom Sort order. This can be arranged via Office button>Excel options>Popular>Edit Custom Lists... Once this is done you can select custom list... under the 'order' drop down in custom sort
    2. Set up all the different 'areas' of your data as individual tables. This way they operate as stand alone 'units' on the sheet with their own filtering, sorting, etc.

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    • Post Points: 21
  • Fri, Jul 31 2009 5:13 AM In reply to

    • Rachel
    • Top 500 Contributor
    • Joined on Fri, Jul 31 2009
    • Posts 3
    • Points 63

    Re: How do you save a sort in Excel?

    I know exactly what Pappy 1961 means.

    I have a table with 8 or so columns - nothing too complicated and I used to be able to select the sort option and the three columns I wanted to sort by were already there from a previous 'sort'.

    I upgraded my excel to the latest edition and now I have to re-input the sort data every time I sort the list which is very regularly and a real pain. 

     

    Bizarrely though if I open the list on another computer-another excel (same edition) and sort the list then save it, the sort criteria stays. It remains even when I reopen it on mine, but disappears as soon as I save on my excel.

     

    I can't find any preferences which seem to control this and I can't find any info on it anywhere. Although several other people have posted the question but no answers seem to address the problem.

    • Post Points: 37
  • Sun, Aug 2 2009 8:10 AM In reply to

    • Omar
    • Top 10 Contributor
    • Joined on Sat, Jan 12 2008
    • Kitchener, ON
    • Posts 128
    • Points 1,823

    Re: How do you save a sort in Excel?

    Rachel, I'm noticing odd behaviour in 2007 as well. Sometimes, I'm able to make the sort "stick" by making sure a cell within the data is selected. Or was it a cell within the heading. I seem to have to try both before it sticks.

    I think your question is a bit different than the original post, though. There, the data is split with empty rows between the rows. I'm not sure if there is a fix for that other than a bit of VBA to select the data group that the cursor is in, then sort by the desired columns. Since I never put sub-totals in the middle of the data, I'm not familiar with the best way, though.

    Omar Freeman Kitchener, ON

    • Post Points: 21
  • Mon, Aug 3 2009 3:43 AM In reply to

    • Rachel
    • Top 500 Contributor
    • Joined on Fri, Jul 31 2009
    • Posts 3
    • Points 63

    Re: How do you save a sort in Excel?

    Thank you for this.

    I did find having a cell selected worked - again I can't remember which one, but not even that seems to work now. It seems quite unstable.

    Is there an excel support contact does anyone know?

    • Post Points: 5
  • Mon, Aug 3 2009 9:03 AM In reply to

    • Rachel
    • Top 500 Contributor
    • Joined on Fri, Jul 31 2009
    • Posts 3
    • Points 63

    Re: How do you save a sort in Excel?

    I've tried it again and you are absolutely right. If a cell in the header row is selected the 'sort by' criteria is saved.

    Brilliant - Big THANK YOU Omar!!!

    Rachel

    • Post Points: 21
  • Fri, Jul 29 2011 6:54 AM In reply to

    • BR72046
    • Not Ranked
    • Joined on Fri, Jul 29 2011
    • Posts 1
    • Points 21

    Re: How do you save a sort in Excel?

    I tried this in Excel 2010 but it didn't work.

     

    With Excel 2003 I could set up sort criteria in a table (a small league table in fact with sort criteria (all in descending order) of points, then goal difference then goals for.  I could copy the sort cell range elsewhere in a spreadsheet, even to different worksheets and the sort criteria would follow.  I could even copy the table within a larger cell range and the sort criteria would be retained. 

    With 2010 it loses all sort criteria even when selecting a cell on the header line before sorting. 

    Are there any contacts at Microsoft we can get in touch with to find out who has removed this 'basic' functionality without having to fork out a fortune for an online 'expert'.

    • Post Points: 21
  • Thu, Oct 13 2011 5:43 PM In reply to

    • eccohawk
    • Not Ranked
    • Joined on Thu, Oct 13 2011
    • Posts 1
    • Points 21

    Re: How do you save a sort in Excel?

    Have any of you tried using Custom Views to get what you need?  You can set up the sheet with the filters and sort options that you want, save a Custom View, and then move on to the next custom sort/filter, and generate the next Custom View, and so on.

    For Ribbon users, go to the View tab and click on Custom Views (after you've set it up to look the way you want it).  Click 'Add', then give it a good name (i.e "All Employees" or "Employees named Mike sorted alphabetically by last name").  It'll offer a couple of options for saving print data and hidden/filter data.  I keep them checked.   Hit 'Ok' when finished.  Close out of the Custom View menu, adjust your sort settings and filters, and then go back into it again.  Rinse, repeat. 

    Once your views are set up, you can open the menu select one of the views you've saved, and presto, everything's sorted the way you want it.

    Hope this helps!

    • Post Points: 21
  • Wed, Dec 7 2011 12:17 PM In reply to

    Re: How do you save a sort in Excel?

    I can't make it work. Excel 2010 keeps dumping the sort criteria randomly, customised view or not. Excel 2000 always remembered the last sort criteria. This is a major nuisance when for example in an account file I nearly always need sorting at two date columns and I have to keep entering the same sort criteria all the time.

    • Post Points: 5
  • Wed, Dec 21 2011 4:58 PM In reply to

    • Shell999
    • Not Ranked
    • Joined on Wed, Dec 21 2011
    • Posts 1
    • Points 5

    Re: How do you save a sort in Excel?

    Got it!  Or close enough..by accident.  I highlighted the rows to sort by column and hit the "Sort A to Z" button (left of the sort box), then hit Ctrl Z (to clear any action the previous might have had), then hit the Sort button again and Voila!  My previously entered sort criteria was there.  A couple extra keystrokes...but better than retyping in multiple column sorts.

    • Post Points: 5
  • Wed, Jan 25 2012 7:20 AM In reply to

    • Andy
    • Not Ranked
    • Joined on Wed, Jan 25 2012
    • Posts 1
    • Points 5

    Re: How do you save a sort in Excel?

    Hi

    When you try to perform the sort a second time, Excel sometimes 'forgets' that you have a header row, so in turn it 'forgets' your sort details.

    If you make sure that your header row doesn't have any blank cells, then Excel automatically assumes it is a header row and therefore remembers your sort prefs from last time.

    Works for me anyway!

    Filed under:
    • Post Points: 5
Page 1 of 1 (11 items) | RSS
Copyright Excel User Group and the relevant contributors, 2010. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.