To clear a sort in Excel, use Data > Sort > Clear (under Options in the sort dialog) or press Ctrl+Z straight after sorting. To clear a filter, click the funnel icon on a column header and choose Clear Filter From, or press Data > Clear in the Sort & Filter group to remove every filter drop-down on the sheet at once. Understanding which of the two you actually applied matters, because sorts and filters are separate tools and clearing one does not touch the other.

A filter simply hides rows without deleting them, so clearing it brings the hidden rows back into view immediately. A sort physically rearranges rows, so clearing it means either undoing the move or re-sorting by your original order. Menu labels can differ slightly by Excel version, platform and region, so if a name below does not match exactly, look for the nearest equivalent.

What You'll Need

  • Excel for Windows, Mac, the web, or Excel on iPhone or Android (the layout of the Data tab is similar across all of them, though mobile has no full ribbon and uses a menu instead).
  • Your data formatted as a table with a single header row and no blank rows in the middle, so Excel recognises the range correctly.
  • An awareness of whether you sorted rather than filtered, since the fix differs.

Step-by-Step

These steps are written for Excel on Windows and Mac. Mobile steps are noted where they differ.

  1. Identify what you applied. Look for a small funnel icon in a column header, or a row-number sequence that jumps (1, 2, 5, 6, 9) with blank gaps. A funnel means a filter is on. Out-of-order or descending values mean a sort has been applied.
  2. To clear one filter: click the funnel icon on that column's header. In the menu that opens, choose Clear Filter From "ColumnName". The hidden rows reappear instantly.
  3. To clear every filter on the sheet: go to Data > Clear in the Sort & Filter group. This removes all filter drop-downs at once and shows every row. On Excel for the web this button works the same way.
  4. To clear a sort using Undo: press Ctrl+Z (Windows) or Cmd+Z (Mac). This only works if you have not saved and closed the file since sorting, and it undoes only the last sorting action.
  5. To clear a sort after saving: use the Data tab's own command. Click anywhere inside your data, then Data > Sort. In the Sort dialog, click Options and then Clear to remove the saved sort criteria. Note that this resets the stored sort levels, not the row order, so you still need to sort by a column that restores your original sequence (an ID, a date, or a row number column you added before sorting).
  6. To restore the original row order permanently: the safest habit is to add a helper column (for example OriginalOrder) and fill it with 1, 2, 3… before any sorting. Later, sort by that column ascending and the rows return exactly as they were.
  7. Turn off AutoFilter entirely: if you no longer want the drop-downs, select your data and go to Data > Filter to toggle AutoFilter off. On Mac, the same button appears in the ribbon's Sort & Filter group.
  8. On mobile: open the file in the Excel app, tap a column header to select the table, open the table menu and look for the filtering controls, then choose the clear-filter option. The full ribbon does not exist on phones, so some options are simply not there.

Common Mistakes

  • Confusing clear with delete. Clearing a filter never deletes rows. If rows disappeared, they are hidden, not gone. Deleting is a separate action and follows the normal undo and recycle rules.
  • Sorting a range that stops short. If Excel asks whether to expand the selection and you choose not to, one column sorts independently of the rest and your rows no longer match. Undo immediately with Ctrl+Z and sort again with the full table selected.
  • Expecting the sort dialog's Clear button to restore row order. It removes sort criteria from the dialog, not the data's arrangement. You must re-sort by the column that reflects your original order.
  • Clearing a filter but forgetting conditional formatting. Hidden rows can still trigger rules; after clearing, check that rows look correct.
  • Working with blank rows in the data. Blank rows break the range detection and cause part of your table to be filtered and the rest to stay untouched. Remove blank rows first, or convert the range to a table with Insert > Table.

Tips

  • Convert data to an Excel Table (Insert > Table). Tables keep header rows attached to filters and extend automatically when you add rows.
  • Before a big sort, save a copy of the workbook. Undo only protects you until you save and close.
  • For pivot tables, filtering is reset differently: right-click a field in the pivot and choose to clear its filter, or use the filter arrow in the row or column label area. Clearing the source data's AutoFilter does not change pivot filters.
  • The status bar shows something like "5 of 240 records found" when a filter is active. It is a quick way to confirm something is still hiding rows.
  • To copy only visible rows after filtering, select the range and use Alt+; (Windows) to select visible cells only.

Troubleshooting

If rows are still hidden after you click Clear, check whether a filter exists outside the selected range — for example, a filter applied to a table above or below on the same sheet, or a filter inside a pivot table. Data > Clear applies to the active table or range, so select the whole sheet data first.

If Undo is greyed out, the action has already been committed or the workbook was closed. Restore from File > Info > Version History if your file is stored in cloud storage, but note that version history depends on where the file is saved.

If your sort produced scrambled rows, do not sort again — undo first. Then verify your range has no merged cells (merged cells break sorting), no blank header cells, and that the header row is correctly recognised.

If a column shows a funnel icon but the data looks complete, open the filter menu to check whether a value is ticked that happens to include every row; clearing removes the arrow entirely. If the funnel is greyed out, the table may be protected — check Review > Unprotect Sheet.

Frequently Asked Questions

Does clearing a filter delete my data?

No. Filtering only hides rows. Clearing the filter brings every row back. Deleting rows is a separate action, and you should use Undo if you did it by mistake.

How do I remove sort arrows that appear on header cells?

Those arrows belong to AutoFilter, not to the sort. Toggle Data > Filter off to remove them. Sorting alone does not create arrows.

Can I restore the original order after saving and closing the file?

Only if you have something to sort by — an ID, a date, or a helper column with sequence numbers. Otherwise, use version history or a backup; there is no built-in command that reverses a saved sort.

Why do only some columns show a filter arrow?

Excel expects one header row across the whole range. Headers merged, blank or unevenly typed can break recognition. Rebuild the range as a proper table to fix it.

Is clearing a filter the same as resetting a pivot table filter?

No. Pivot tables keep their own filter state. Clear those through the pivot's field drop-down or the label filter arrows, separately from the sheet's AutoFilter.