A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Found the answer - Data tab, Sort dialog - in upper right is a checkbox My Data Has Headers.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
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.
Answer accepted by question author
Found the answer - Data tab, Sort dialog - in upper right is a checkbox My Data Has Headers.
Hi,
I do not believe you can do that. Furthermore, it is not a good practise to maintain multiple rows for headers.
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..
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
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.