Clearing all sorting in Excel restores your data to its original order as it appeared when first entered or last unsorted, removing any applied column-based sort criteria. This is essential when you’ve applied multiple sorts and need to reset the dataset for accurate analysis, reporting, or further editing. No special tools or add-ins are required—this works in all modern versions of Excel for Windows, Mac, and Excel Online. Ensure your data is in a structured table or a contiguous range with headers, as sorting only applies to selected data ranges.
What You'll Need
- A Microsoft Excel file with sorted data
- Access to the Data tab on the Excel ribbon
- Administrative permissions to open and edit the file (if working on a shared or protected sheet)
Step-by-Step
- Open your Excel file and locate the range of data that has been sorted. If your data is in a table (formatted with Ctrl+T), the entire table will be affected. If it’s a plain range, ensure you’ve selected the entire block of cells including headers.
- Click anywhere inside your data range or table. Do not select just one column—selecting the entire dataset ensures Excel knows which range to reset.
- Go to the Data tab on the Excel ribbon at the top of the window.
- In the Sort & Filter group, look for the Clear button. It appears as a small icon with an upward arrow and a diagonal line through it, labeled "Clear" when you hover over it. Click this button.
- If the Clear button is grayed out or not visible, it means no sort is currently active on the selected range. Skip to step 7. Otherwise, clicking Clear will immediately remove all sort levels and restore the original order of rows.
- Verify the result: scroll through your data to confirm that rows have returned to their original sequence. For example, if you had sorted by "Name" then "Date," and then cleared, the data should now appear as it did before any sort was applied.
- If you had applied filters (not sorts) alongside sorting, clearing the sort does not remove filters. To remove filters, go to the Data tab and click Filter again to turn them off.
- Save your file to preserve the unsorted state. If you’re working on a shared document, notify collaborators that the sort has been cleared to avoid confusion.
Common Mistakes
- Only selecting one column before clicking Clear—this prevents Excel from recognizing that a sort exists across multiple columns, so the button remains inactive. Always select at least one cell within the full data range.
- Confusing filters with sorting: clearing a sort does not remove filters. If your data still appears filtered after clearing the sort, you must manually turn off the filter using the Filter button on the Data tab.
- Assuming the "Undo" function (Ctrl+Z) will reverse a sort—it won’t, if you’ve performed other actions since sorting. The Clear button is the only reliable way to remove sorting.
- Using the "Sort" dialog box to remove sorts instead of the Clear button. The Sort dialog allows you to add or edit sorts, but not remove them entirely. You must use the Clear button.
- Working on a protected worksheet without unprotecting it first. If the sheet is protected, the Clear button will be disabled. Go to Review > Unprotect Sheet (you may need a password).
Tips
- If you frequently sort and clear data, consider turning your range into an Excel Table (Ctrl+T). Tables automatically expand to include new data and make sorting and clearing more reliable.
- Before sorting, copy your data to a backup sheet. This way, if you need to restore the original order later, you can simply paste from the backup instead of relying on the Clear function.
- Use the Status Bar at the bottom of Excel to confirm whether sorting is active. If you see "Sort: [Column Name]" displayed, a sort is applied and can be cleared.
- Keyboard shortcut: Press Alt+D, then S, then C. This opens the Data menu, selects Sort, then clears the sort—useful if you prefer keyboard navigation.
- If you’re using Excel Online or a mobile version, the interface may be simplified. Look for the "Sort & Filter" option under the Data menu, then tap "Clear." The functionality is identical.
- Always check if your data has hidden rows or columns. Sorting can sometimes hide rows that aren’t visible; clearing the sort won’t unhide them—use the Home tab > Format > Hide & Unhide to reveal them.
Troubleshooting
- The Clear button is grayed out. This means no sort is active. Double-check that you’ve selected a cell within the sorted range. If you’ve applied filters but no sort, the Clear button won’t activate. Turn off filters first if needed.
- Data still appears ordered after clearing. If rows remain in a logical order (e.g., alphabetical), you may have entered them that way originally. Clearing the sort only removes Excel’s sort operation—it doesn’t randomize or reorder data beyond restoring the original input sequence.
- Excel crashes or freezes when clearing. Restart Excel. Large datasets with complex formulas or external links can cause temporary performance issues. Save your work, close the file, reopen it, and try again.
- Sort is still visible in the column headers. Look for small arrows (up/down) in the header cells. These indicate an active sort. Clicking Clear removes them. If they remain, manually click the header and select "Sort A to Z" or "Sort Z to A," then clear again.
- Working in a shared workbook. If the file is in shared mode (Review > Share Workbook), sorting and clearing may be restricted. Save a local copy, clear the sort, then re-upload to the shared location.
- Using Excel on a Mac. The interface is nearly identical. If you can’t find the Clear button, go to Data > Sort > Clear. The button may be labeled "Remove All" in older versions.