Share via

Default Sort sorting header row

Anonymous
2010-11-13T17:34:21+00:00

Excel 2007

Occasional I am working with a sheet of data that headers at the top and the ribbon sort works fine - the header stays put. But on occasion the sheet starts including the header row and it gets shuffled around where it doesn't belong.

Freeze top row doesn't keep it in place.

I tried to change the formatting on just the top row - no joy.

Naming the cells below the header row doesn't work.

How do I get back to the default that exlcudes the top row from the sort?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-11-13T17:42:51+00:00

Found the answer - Data tab, Sort dialog - in upper right is a checkbox My Data Has Headers.

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2012-07-17T00:41:12+00:00

    Hi,

    I do not believe you can do that.  Furthermore, it is not a good practise to maintain multiple rows for headers.

    Was this answer helpful?

    0 comments No comments
  2. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2012-07-17T00:40:21+00:00

    Hi,

    If you want Sort and Filter to pick up your first row as the header row every time, applydistinctive formatting to the header row, such as header in Bold. Now when you select the entire data set including the header row, "My Data has header" box will be checked.

    Hope this helps..

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-07-16T18:40:42+00:00

    Found the answer - Data tab, Sort dialog - in upper right is a checkbox My Data Has Headers.

    This does not work if you have more than one header line.  How can I lock all header lines?  Thanks

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-10-10T04:22:49+00:00

    This solution works, but I've found with one spreadsheet that I need to do this every time I open it, otherwise the header rows get sorted with the data as you've described.

    What would be great is to turn this option on as a default, i.e. always assume my table has header rows, rather than always assuming that it doesn't. If this option exists, I can't find it.

    I'm on Office 2011 for Mac, by the way. Not sure if that is different to the functionality in Office 2010.

    Was this answer helpful?

    0 comments No comments