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.
Never mind, I found a solution, albeit a little clunky. I inserted a blank line between the two header lines and then hid it. When I try to sort, it picks up the second line (now the third) as the header.
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..
This does not work if your users are pressing the Sort buttons on the toolbar/ribbon. My users are not savvy enough to know to use the checkbox. Punt.
Glad to know you fixed the issue. Thank you for sharing the resolution, as this would help other members of the community facing the same issue.