Clearing sort in Excel restores your table to its original data order, undoing any column-based sorting you've applied. This is useful when you need to view records in their input sequence, prepare for a new sort, or fix an accidental sort. No special tools or add-ins are required—this works in all modern versions of Excel for Windows, Mac, and Excel Online.

What You'll Need

  • An Excel workbook with a formatted table (created via Insert > Table or Ctrl+T)
  • Access to the Data tab on the Excel ribbon
  • Basic familiarity with Excel’s table headers and filter arrows

Step-by-Step

  1. Open the Excel workbook containing the table you want to clear the sort from.
  2. Click anywhere inside the table—do not select multiple cells or rows. Clicking a single cell within the table ensures Excel recognizes the entire table as the active range.
  3. Go to the Data tab on the ribbon at the top of the Excel window. Look for the Sort & Filter group.
  4. Find the button labeled Clear. It appears as a small icon with an upward arrow and a crossed-out funnel, or sometimes just the word "Clear" next to it.
  5. Click the Clear button. This removes all active sort criteria applied to the table and restores the original row order as it existed before any sorting occurred.
  6. Verify the change by scanning the first few rows. If the table was originally sorted by input order (e.g., row 1, row 2, row 3…), those rows should now appear in that same sequence.
  7. If you see filter arrows still active in the header row (small downward triangles), that’s normal—filters remain unless you explicitly turn them off. Clearing sort does not disable filters.

Common Mistakes

  • Clicking outside the table before clearing sort—Excel may not recognize the table and the Clear button may be grayed out. Always click inside the table first.
  • Confusing Clear with Remove Filters—Clear removes sorting; Remove Filters removes the filter dropdown arrows entirely. You don’t need to remove filters to clear a sort.
  • Trying to undo with Ctrl+Z after applying multiple actions—Excel’s undo stack may not preserve the original row order if you sorted, filtered, and edited data afterward. Use the Clear button instead.
  • Assuming “Clear Sort” deletes data—It does not. It only reorders rows to their pre-sort state. All values, formulas, and formatting remain intact.
  • Using the Sort dialog box to reverse sorting—Manually reversing a sort doesn’t restore original order. Only Clear restores the true input sequence.

Tips

  • Before sorting, consider copying your table to a backup sheet if you need to preserve the original order permanently. Clearing sort only reverts to the last state before sorting—not to a saved version.
  • If you frequently sort and need to return to original order often, create a helper column labeled "Original Order" and fill it with sequential numbers (1, 2, 3...). You can sort by that column later to restore order.
  • When working with large datasets, clearing sort is faster than manually reordering rows. Excel automatically recalculates the sequence instantly.
  • You can clear sort using keyboard shortcuts: After selecting a cell in the table, press Alt+A, then C. This opens the Data tab and triggers the Clear command.
  • Clearing sort works the same whether you’re sorting one column or multiple columns. The button removes all sort levels at once.

Troubleshooting

  • The Clear button is grayed out. This usually means Excel doesn’t detect an active table. Click inside the table again. If it still doesn’t activate, check if your data range is properly formatted as a table. Select your data, then press Ctrl+T to convert it to a table if needed.
  • After clicking Clear, the order didn’t change. You may have sorted the data without using the table feature—perhaps you selected the range and used Data > Sort manually. In that case, you must undo using Ctrl+Z or manually re-sort by an original index column.
  • Excel says "This operation requires the merged cells to be identically sized." This error occurs if you have merged cells within the table. Excel tables do not support merged cells. Unmerge all cells in the table before applying any sort or filter operations.
  • Clear sort works but the data still looks sorted. Check if you have a secondary sort applied in another column, or if your data was copied from an external source that already had an order. Use the "Original Order" helper column method to verify.
  • Using Excel Online and the Clear button is missing. Excel Online sometimes hides the Clear option if the table is too large or if you’re in a restricted view. Try switching to the desktop app, or use the Sort dialog to set sort criteria to "None" for each column.

Frequently Asked Questions

Can I clear sort without losing my filters?

Yes. Clearing sort only removes the sorting hierarchy; filter arrows and applied filter conditions remain active. You can still use filters after clearing sort.

Does clearing sort affect formulas or pivot tables linked to the data?

No. Formulas and pivot tables that reference the table will automatically update to reflect the new row order. Data integrity is preserved.

What if I sorted the data before converting it to a table?

If your data isn’t formatted as a table, the Clear button won’t appear. Use Ctrl+Z to undo the sort, or create a helper column with row numbers before sorting to restore order later.

Can I clear sort on multiple tables at once?

No. Excel applies the Clear command only to the active table. You must click inside each table separately and click Clear for each one.

Why does Excel sometimes sort by the first column automatically after I clear sort?

This can happen if you have a legacy sort setting or if the table was created from imported data with a default sort rule. Ensure no sort criteria are lingering by opening the Sort dialog (Data > Sort) and removing all levels.

Is there a way to permanently disable sorting in a table?

No. Sorting is a core feature of Excel tables. However, you can hide the filter arrows by selecting the table, going to the Table Design tab, and unchecking "Filter Button"—this prevents users from initiating sorts, but doesn’t stop programmatic sorting.