How to Filter and Sort Data in Excel

Tap an item to see how to filter and sort data in Excel.

Apply a filter

Select your data range, then click "Data > Filter." Drop-down arrows appear on each column header, letting you show only rows that match a chosen condition.

Sort ascending or descending

Select the column you want to sort by, then click "Data > Sort A to Z" (or "Z to A") to rearrange every row based on that column's values.

Sort by multiple criteria

Choosing "Data > Sort" lets you set a primary and secondary sort key for more precise control over the row order.

Clear a filter

Click the "Filter" button again while a filter is active to remove it and bring every row back into view.

Even huge datasets stay manageable

Filtering and sorting let you pull out exactly the rows you need, or reorder hundreds or thousands of rows by any criteria you choose, which is one of the biggest everyday productivity wins Excel offers.

Always sort with the full table selected

Sorting by only one column instead of the entire table is the single most common way spreadsheet data gets scrambled -- rows can end up mismatched between columns. Always select the entire table before sorting.

Frequently Asked Questions

I sorted my data and now everything looks mismatched.

This usually happens when you select and sort just one column instead of the whole table, which shifts that column's values out of sync with the rest of each row. Always select the full table range before sorting.

Is data hidden by a filter deleted?

No -- a filter only hides rows from view temporarily. Clearing the filter brings every hidden row back exactly as it was.