How to Filter in Excel (Sort, Filter, and Slicers)
To filter in Excel, select your data and go to Data → Filter (or press Ctrl + Shift + L). Small arrows appear in the header row — click one to choose which values to show. Filtering hides rows, it doesn’t delete them, so nothing is lost.
Turn AutoFilter on and off
- Click any cell inside your data.
- Go to the Data tab → Filter (or press
Ctrl + Shift + L). - Dropdown arrows appear on each header.
- Press
Ctrl + Shift + Lagain to remove them.
Make sure your data has a single header row with no blank rows underneath. Excel guesses the range from the cells around your cursor — blank rows cut the range short and leave some data unfiltered.
Filtering by ticking values
- Click the arrow in the column header.
- Untick (Select All).
- Tick the values you want to see.
- Click OK.
Use the Search box inside the dropdown when the list is long — type a few letters and tick Add current selection to filter to keep adding.
Tip: if you can’t tick anything, or the list looks odd, your data probably has blanks or mixed types in that column.
Filtering by condition (number, text, date)
The dropdown also has Number Filters, Text Filters, or Date Filters depending on the column. Those give you proper conditions:
| You want | Use |
|---|---|
| Values above 1,000 | Number Filters → Greater Than |
| The top 10 rows | Number Filters → Top 10 |
| Text containing “north” | Text Filters → Contains |
| Rows between two dates | Date Filters → Between |
| Blank cells | (Blanks) in the value list — untick it, or use Custom Filter, for non-blanks |
Custom Filter lets you combine two conditions with AND/OR — e.g. Sales greater than 500 AND Region contains “West.”
The classic trap: filtering for “contains north” also matches Northampton and Northwind. Use Equals for an exact match when the wording matters.
Reapplying and clearing filters
- Reapply after editing data: Data → Reapply (or
Ctrl + Alt + L). - Clear a single column: click its arrow → Clear Filter from [column].
- Clear everything: Data → Clear.
- Remove the arrows entirely:
Ctrl + Shift + L.
Filtered-out rows are hidden, not gone. Select all and Delete while a filter is active and you’ll only delete the visible rows — a very common way to lose data by accident.
Filtering vs sorting
These get confused, and they do different jobs:
| What it does | |
|---|---|
| Filter | Hides rows that don’t match — you see a subset |
| Sort | Reorders all the rows — you see everything, in a new order |
See how to sort in Excel for the sorting side. You can filter and sort the same column.
Filters and formulas
Hidden rows are still calculated. SUM, AVERAGE and friends ignore the filter and total everything.
To total only what’s visible:
=SUBTOTAL(109, B2:B100) // 109 = SUM, ignoring hidden rows
=SUBTOTAL(103, B2:B100) // 103 = COUNTA, ignoring hidden rows
SUBTOTAL is the function that respects filters. That’s usually the right answer for a filtered total.
Slicers (the better filter)
A slicer is a floating set of buttons that filters the data with one click — much better than opening dropdowns.
- Click inside your data. It must be a Table (
Ctrl + T) or a PivotTable — slicers don’t work on a plain cell range. - Go to Insert → Slicer.
- Pick the column, click OK.
- Click buttons to filter. Multi-select with
Ctrlor the multi-select toggle.
Slicers work on Tables and PivotTables. They make a filtered sheet feel like a dashboard — see how to make a dashboard in Excel.
Advanced filtering
For anything more complex, use Data → Advanced:
- Filter the list in place — hides rows like a normal filter, but with a criteria range.
- Copy to another location — extracts matching rows to a new area, leaving the original untouched.
- Unique records only — a quick way to produce a de-duplicated list. (For a full cleanup, see how to remove duplicates in Excel.)
Advanced Filter needs a small criteria range on the sheet: copy your header row somewhere, then type your conditions underneath. Conditions on the same row are AND; on separate rows they’re OR.
Common problems
| Problem | Fix |
|---|---|
| Some rows won’t filter | Blank rows in the data — remove them and re-apply the filter |
| Arrows missing on some columns | The range didn’t include those columns; select the whole table and re-apply |
| Filter “forgets” new rows | Add rows inside the range, or convert to a Table (Ctrl + T) so it auto-expands |
| A column won’t offer Date Filters | The dates are stored as text — convert them to real dates |
| You meant to clear everything but rows survived | A filter was still active — hidden rows aren’t deleted. Clear the filter and retry |
| Totals don’t match what’s on screen | Use SUBTOTAL, not SUM — SUM ignores the filter |
FAQ
How do I filter in Excel quickly?
Click inside your data and press Ctrl + Shift + L. Arrows appear in the header row — click one to choose which values to show.
Does filtering in Excel delete rows?
No — it hides them. The data is still there. Be careful though: if you delete while a filter is active, only the visible rows are deleted.
How do I filter for multiple values in one column?
Click the column arrow, untick (Select All), then tick every value you want. Use the search box and Add current selection to filter for long lists.
Why won’t my Excel filter count correctly?
Because SUM and AVERAGE include hidden rows. Use SUBTOTAL instead — =SUBTOTAL(109, range) sums only the visible rows.
How do I filter and sort at the same time?
Both work on the same column: sort first or filter first, then use the other dropdown. You can sort within a filtered view — see how to sort in Excel.
Related guides
Google Sheets Formulas for Beginners (10 You Need to Know)
The 10 essential Google Sheets formulas every beginner needs — SUM, AVERAGE, COUNT, IF, and more, with working examples.
How to Add Checkboxes in Google Sheets (Tick Boxes)
Add checkboxes in Google Sheets with Insert → Checkbox, set custom checked/unchecked values, and count ticks with COUNTIF or a progress bar.
How to Create a Drop-Down List in Excel (Data Validation)
Add a drop-down list in Excel with Data Validation — pick from a typed list or a range on another sheet, and fix the errors that stop it working.