How to Add Filters in Excel: Step-by-Step Guide
In this article
To add filters in Excel, select your data range, go to the Data tab, and click Filter (or press Ctrl+Shift+L). Dropdown arrows appear in each column header, letting you sort and show only the rows you need. This works in Excel for Microsoft 365, Excel 2019, 2021, and Excel for Mac; the exact button labels can differ slightly by version, device, or region.
What You'll Need
- Excel installed on your computer (desktop version recommended; the web version has limited filter options).
- A worksheet with data arranged in columns, ideally with a single header row at the top.
- No blank rows or columns inside the data range you want to filter.
Step-by-Step
- Prepare your data. Make sure each column has a clear header in the first row, and there are no completely blank rows or columns within the range. If there are, Excel may treat separate blocks as different tables and filter only part of your data.
- Select your data range. Click any cell inside your data. If your data is a contiguous block, Excel will usually detect the whole range automatically. To be safe, press Ctrl+A (Windows) or Command+A (Mac) to select the current region, or drag to select all cells including headers.
- Go to the Data tab. On the ribbon, click the Data tab. In the Sort & Filter group, click Filter. On Mac, the Filter button is also on the Data tab. Alternatively, press Ctrl+Shift+L (Windows) or Command+Shift+L (Mac).
- Check for dropdown arrows. Small arrows should appear in the bottom-right corner of each header cell. If they don't, your selection may not include the header row, or you may have selected a single cell outside the data range. Undo with Ctrl+Z and try again.
- Open a filter dropdown. Click the arrow in the column you want to filter. A menu appears with sorting options and a list of unique values in that column.
- Choose your filter criteria. Tick the checkboxes for the values you want to show, or use the search box to find specific entries. For more control, click Text Filters, Number Filters, or Date Filters (the submenu name changes with the column's data type) and pick a condition such as Equals, Contains, or Greater Than. Enter your criteria and click OK.
- Review the results. Only rows matching your criteria remain visible; the rest are hidden, not deleted. The row numbers on the left may appear in blue to indicate a filter is active.
- Add more filters if needed. You can filter multiple columns at once. Each additional filter narrows the results further. To remove a filter from one column, click its dropdown and choose Clear Filter From [column name].
- Turn off filters when done. To show all data again, go to Data > Filter (or press Ctrl+Shift+L again). This removes the dropdown arrows and unhides all rows. Alternatively, click Clear in the Sort & Filter group to clear criteria but keep the filter buttons.
Common Mistakes
- Blank rows or columns inside the data. Excel may treat the data as separate ranges, so filtering one column won't affect the whole table. Remove blank rows/columns before filtering.
- Merged cells in the header row. Merged cells can prevent filters from applying correctly. Unmerge them and put one header per column.
- Selecting only part of the data. If you select a single column and click Filter, only that column gets filter arrows, which can hide rows inconsistently. Always select the entire range or a cell inside it.
- Forgetting that filters hide rows, not delete them. Copying visible cells may include hidden rows unless you use Visible cells only (Alt+; on Windows).
- Applying filters to a formatted table vs. a range. If your data is an Excel Table (created with Ctrl+T), filter arrows appear automatically and behave slightly differently. Mixing table and range filters can cause confusion.
Tips
- Use Sort A to Z or Sort Z to A from the filter dropdown to reorder visible rows quickly.
- For text columns, the Contains filter is handy for partial matches (e.g., all rows containing "North").
- To filter by color, right-click a cell with the fill color and choose Filter > Filter by Selected Cell's Color (available in most desktop versions).
- When you need to copy filtered results, select the range, press Alt+; (Windows) or Command+Shift+Z (Mac) to select visible cells only, then copy.
- If you plan to add rows later, consider converting your range to an Excel Table (Ctrl+T) so filters and formatting extend automatically.
Troubleshooting
- Filter arrows don't appear. Check that you selected a cell inside the data range and that the header row is included. Also ensure the worksheet isn't protected (Review > Unprotect Sheet).
- Filtering hides too many rows. You may have accidentally applied a filter to multiple columns. Clear all filters via Data > Clear, then reapply one at a time.
- Some values are missing from the filter list. This can happen if the column contains blank cells or if the data range doesn't include all rows. Expand your selection or remove blank rows.
- Filter dropdown shows numbers as text or vice versa. Mixed data types in a column can cause filtering issues. Convert the column to a consistent format (e.g., all text or all numbers) using Text to Columns or by re-entering values.
- Filters don't work in Excel for the web. The web version supports basic filtering, but some advanced options (like filter by color) may be unavailable. Use the desktop app for full functionality.
Frequently Asked Questions
Can I filter by multiple criteria in the same column?
Yes. In the filter dropdown, use the search box to tick multiple values, or choose Text Filters > Custom Filter to set conditions like "begins with" and "ends with" with AND/OR logic.
How do I remove all filters at once?
Go to Data > Clear (in the Sort & Filter group). This clears all filter criteria but leaves the filter buttons in place. To remove the buttons entirely, click Data > Filter again.
Does filtering delete data?
No. Filtering only hides rows that don't match your criteria. The data remains in the worksheet and reappears when you clear the filter.
Can I filter by cell color or font color?
In most desktop versions of Excel, yes. Click the filter arrow, choose Filter by Color, and pick a color. This option may not be available in Excel for the web or some older versions.
Why do my filter arrows disappear after I save and reopen the file?
If the file is saved in a format that doesn't support filters (e.g., .csv), the filter settings are lost. Save as .xlsx to retain filters. Also check that the worksheet isn't protected.
Can I use filters on a protected sheet?
Only if the sheet protection allows it. When protecting the sheet (Review > Protect Sheet), tick the Use AutoFilter option. Otherwise, filters won't work.