How to Apply a Filter in Excel (Step-by-Step Guide)
Most tutorials will tell you that filters are one of Excel's easiest features to learn. That's true — until your filter silently hides half your data and you spend an afternoon wondering why your numbers don't add up. Applying a filter in Excel takes about ten seconds. Understanding why it sometimes misbehaves takes a little longer, and that's the part most guides skip.
This article walks you through the whole thing: turning filters on, using them to isolate specific values or text, clearing them cleanly, and catching the mistakes that trip people up even after years of daily use. If you're newer to Excel generally, the Excel for Beginners starter guide is worth reading alongside this one.
|
| AutoFilter adds a dropdown arrow to each column header — your starting point for any filter in Excel. |
What AutoFilter Does — and One Dataset Habit to Check Before You Start
AutoFilter is Excel's built-in system for showing only the rows that match criteria you choose, while temporarily hiding everything else. You're not deleting rows: you're telling Excel to display a subset of your data. The filter range is the block of cells Excel reads when it builds those dropdown menus.
Before you touch the Data tab, check two things. First, your data needs a header row: one row at the top with column labels like "Region," "Date," or "Amount." AutoFilter reads that row to label its dropdowns. Second, there shouldn't be any fully blank rows inside your data. A blank row tells Excel the dataset has ended, so anything below it gets cut out of the filter range entirely. Fix both of those now and you'll avoid the most common reason filters behave strangely.
The fastest way to apply a filter in Excel is the keyboard shortcut Ctrl+Shift+L. Click anywhere inside your data first, then press it. If you prefer menus, the same toggle lives in the Sort & Filter group on the Data tab of the Excel ribbon.
Step 1: Turn On AutoFilter from the Data Tab
Once your header row is in place, you're ready to enable AutoFilter. Here are two paths: pick whichever one you'll actually remember.
Path A — Ribbon:
- Click any cell inside your dataset.
- Go to the Data tab on the Excel ribbon.
- Click Filter in the Sort & Filter group.
Path B — Keyboard shortcut:
- Click any cell inside your dataset.
- Press Ctrl+Shift+L on Windows. Mac users in Microsoft 365 should use the ribbon path or Alt+A+T if your keyboard supports it.
You should now see small dropdown arrows appear in every cell of your header row. That's AutoFilter confirming it found your range. If the arrows only appear on some columns, Excel may have detected a gap in your data: go back and check for blank rows or columns breaking the range.
Excel Online renders filter dropdowns slightly differently than the desktop app. The core behavior is the same, but some custom filter options are more limited in the browser version. If you're working in Microsoft 365 on desktop, you'll have the full set of options covered below.
Step 2: Filter by Value, Text, or Number to Show Only the Rows You Need
With the dropdowns active, you can start narrowing your data. There are two main approaches, and which one you use depends on what you're trying to find.
Filter by a specific value using the checkbox list
Click the dropdown arrow on the column you want to filter. A checklist appears showing every unique value in that column. By default, Select All is ticked, meaning everything is visible. This trips up new users constantly. You have to untick Select All first, then tick only the values you want to see. Try it: untick Select All, tick one value, click OK. Excel hides every row that doesn't match.
To filter multiple columns at once, repeat the same process on a second column's dropdown. Each column filter stacks on top of the last, so you can filter by Region in column A and then by Status in column C, and Excel will show only rows that match both. That's filtering across multiple columns without any extra setup.
Filter by text or number criteria using custom filter options
The checkbox list works great for exact matches. For anything else — "contains a keyword," "is greater than 500," or a date range — you need the custom filter panel. Click the dropdown arrow, hover over Text Filters or Number Filters (Excel shows whichever applies to that column), and select your criteria type. The dialog that opens lets you set one or two conditions with AND/OR logic between them. That's the Excel custom filter criteria panel, and it handles most real-world filtering needs without touching a formula.
Step 3: Clear or Remove a Filter When You're Done
Once you've confirmed your filtered view, or you're ready to start fresh, you've got two options: and the difference matters.
Clearing a filter on one column brings all the hidden rows back for that column only, while keeping other column filters active. Click the dropdown arrow on that column and select Clear Filter From [Column Name].
Removing all filters takes everything off at once. Go to the Data tab and click Filter again, or press Ctrl+Shift+L to toggle AutoFilter off entirely. This removes the dropdown arrows too. If you just want to clear all active filters without losing the arrows, use the Clear button in the Sort & Filter group on the Data tab instead.
Toggling AutoFilter off and clicking Clear are not the same thing. One removes the dropdown arrows entirely; the other just resets which rows are visible.
Common Mistakes When Applying a Filter in Excel (and Why Your Filter Might Not Be Working)
The most dangerous filter mistake isn't an error message. It's a filter that appears to be working while quietly hiding rows you didn't mean to exclude. When a filter is active, Excel turns the row numbers blue. If you export that data or share the file and the recipient doesn't notice the blue row numbers, they're working with incomplete data. A filtered file shared over OneDrive looks complete to anyone who doesn't check — and that causes real reporting problems in collaborative environments.
The other issues worth knowing about:
- Blank rows inside the data: Excel treats a fully blank row as the end of the dataset. Rows below it won't be included in the filter range at all. Delete the blank row or fill it in.
- Merged cells in the header row: Merged cells break AutoFilter in unpredictable ways. Unmerge them before applying a filter.
- Trailing spaces in cell values: A cell containing "Smith " and a cell containing "Smith" look identical on screen but won't match in a filter search. A single rogue space character from a data export can make a filter appear completely broken. Use TRIM on the column first if you're getting unexpected no-results.
If your criteria are complex enough that AutoFilter can't handle them — multiple conditions across many columns, or criteria based on formulas — that's when Advanced Filter becomes relevant. It's a separate feature on the Data tab and worth exploring once you're comfortable with the basics covered here.
For platform-specific behavior differences, the guide to sorting and filtering data in Excel on Mac covers the gaps in detail.
Frequently Asked Questions
What is the keyboard shortcut to apply a filter in Excel?
On Windows, press Ctrl+Shift+L with your cursor inside the dataset to toggle AutoFilter on or off. You can also use Alt+A+T as an alternative keyboard path via the ribbon. Mac users in Microsoft 365 should use the Data tab on the ribbon, as the shortcut behavior differs by version.
Why is my Excel filter not working?
The three most common causes are blank rows inside the dataset (which cut off the filter range), merged cells in the header row (which break AutoFilter), and trailing spaces in cell values (which prevent matches in search-based filters). Check all three before assuming the feature itself is broken.
What's the difference between AutoFilter and Advanced Filter in Excel?
AutoFilter handles most everyday filtering — by value, text, number range, date, or color — directly through the dropdown menus on your header row. Advanced Filter is a separate tool that lets you define criteria in a separate range on the sheet, which is useful for complex multi-condition logic or when you want to copy filtered results to a different location.
How do I filter multiple columns in Excel at the same time?
Apply a filter on the first column using its dropdown, then go to the second column's dropdown and apply a second filter. Excel stacks the filters: each one narrows the visible rows further. All active column filters apply simultaneously, so you'll only see rows that match every condition you've set.
Join the conversation