+ Reply to Thread
Results 1 to 9 of 9

Why does the sort area change?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-03-2015
    Location
    California
    MS-Off Ver
    Windows 7 Professional SP1
    Posts
    4

    Why does the sort area change?

    I have a simple spreadsheet without formulas. Just names, dates, etc. My sheet has a header row.

    When I perform the very first sort of my worksheet, Excel highlights all the columns and rows under the header rows automatically. I will then click on OK and the sort proceeds normally. However, if I later run the same sort again, Excel automatically adds one of the header rows to the sort selection and continues to do this from that point on with every subsequent sort. If I close and re-open the file the scenario repeats itself; kind of like a reset.

    It does this whether or not I've modified the worksheet or not. I can open the file, perform a sort and immediately run the same sort and the above occurs.

    Is this just a quirk of Excel 2010 or.....? It's not a big deal but it is annoying to have to re-define or manually choose the sort area every time.

    Sort procedure I use:

    1. Choose any cell in worksheet.
    2. Menu --> DATA --> Sort (button) --> Sort box appears --> click OK

    I've attached a screen shot if this helps.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Why does the sort area change?

    In the first one it has sort by completion, the second one has sort by per schedule. Not sure if this is the issue, but worth a shot...if you haven't already tried it. Have you tried freezing the header row?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    04-03-2015
    Location
    California
    MS-Off Ver
    Windows 7 Professional SP1
    Posts
    4

    Re: Why does the sort area change?

    Quote Originally Posted by gmr4evr1 View Post
    In the first one it has sort by completion, the second one has sort by per schedule. Not sure if this is the issue, but worth a shot...if you haven't already tried it. Have you tried freezing the header row?
    Thanks for the reply.

    The issue is Excel automatically chooses "sort by completion" the first time and then changes it to "sort by per schedule" for each subsequent sort. Why does Excel feel the need to change the "sort by" definition on its own?

    The header rows are frozen. It also does this with the header rows unfrozen.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Why does the sort area change?

    Not sure why excel automatically changes it, but, you should be able to change it back manually...I know this may be a pain, but, at this point, it may not be the best option, but, it's an option.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Why does the sort area change?

    Welcome to the forum.

    Your actual workbook would be more valuable than a screenshot as no one can do any testing with a picture of a worksheet.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    04-03-2015
    Location
    California
    MS-Off Ver
    Windows 7 Professional SP1
    Posts
    4

    Re: Why does the sort area change?

    Just to close the loop on this.

    This issue appears to have something to do with having two header rows. I can replicate the issue 100% by just creating a worksheet with two header rows. Doesn't matter if the top two rows are frozen or how cells are formatted, etc. Saving and reopening will "reset" the issue very time as well.

    Attached is a test file which exhibits identical behavior as my original file in question.

    I wouldn't call this issue "solved" as I really don't know what's causing this.
    Attached Files Attached Files

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Why does the sort area change?

    Change it to just have one header row. 'Header row' has no plural in Excel.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    04-03-2015
    Location
    California
    MS-Off Ver
    Windows 7 Professional SP1
    Posts
    4

    Re: Why does the sort area change?

    Quote Originally Posted by shg View Post
    Change it to just have one header row. 'Header row' has no plural in Excel.
    Why didn't I think of that?

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Why does the sort area change?

    If you have to have two "header rows" try putting a row between them. As I understand the problem, this seems to fix it with tests that I have tried with your file.

+ 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] Change default to expand sort area or not
    By ajan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2014, 04:10 PM
  2. Sort and copy data from custom formatted tables on multiple sheets to one area
    By christmaslyric in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2014, 03:14 PM
  3. Set Print Area based on Sort
    By crjpilot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-16-2008, 09:36 AM
  4. How do I sort area codes by time zones
    By Paul in forum Excel General
    Replies: 1
    Last Post: 08-04-2005, 04:05 AM
  5. Defining area codes per state to sort
    By jshgolf in forum Excel General
    Replies: 2
    Last Post: 07-01-2005, 01:13 PM

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