How to Insert Filters in Excel Spreadsheets
In this article
To insert filters in an Excel spreadsheet, select your data range (or click any cell inside it), go to the Data tab, and click Filter. Drop-down arrows appear in each column header, letting you sort and show only the rows you want. This works in Excel for Windows, Mac, and the web; menu labels can differ slightly by version and region.
What You'll Need
- Excel 2010 or later (desktop) or Excel for the web; the steps below use the desktop ribbon, with web differences noted.
- A worksheet with a single header row directly above your data — no blank rows between the header and the first record.
- Data arranged in columns, with one type of information per column (dates in one column, amounts in another).
Step-by-Step
- Prepare the range. Make sure row 1 contains unique column headings (for example Date, Region, Amount). Delete any merged cells in the header row — filters do not work reliably with merged cells. Remove completely blank rows and columns inside the data block.
- Select the data. Click any single cell inside the table. Excel will detect the surrounding block automatically. If you prefer, drag to select the full range including headers.
- Turn on Filter. On the Data tab, in the Sort & Filter group, click Filter. In Excel for the web, the button is also on the Data tab. Keyboard shortcut: Ctrl+Shift+L (Windows) or Cmd+Shift+L (Mac).
- Confirm the arrows. Small drop-down arrows appear in each header cell. If they appear in the wrong row, you likely have a blank row or a title row above the headers — see Troubleshooting.
- Apply a filter. Click the arrow in the column you want to narrow. Tick or untick values in the list, or use Text Filters, Number Filters, or Date Filters for conditions such as “greater than” or “begins with”. Click OK.
- Filter more than one column. Repeat step 5 on other columns. Filters combine, so only rows matching every active filter remain visible.
- Clear or remove filters. To clear one column, click its arrow and choose Clear Filter from [column name]. To remove all filters and the arrows, click Data > Filter again (or press the same shortcut).
Common Mistakes
- Blank rows inside the data. Excel stops detecting the range at the first blank row, so later rows are excluded from filtering. Delete blank rows or convert the range to a table first.
- Merged header cells. Merged cells break the one-arrow-per-column layout. Unmerge them and put a single heading in each cell.
- Filtering a single column only. If you select one cell in a column and the data has adjacent columns, Excel usually expands the selection — but if a blank column separates them, only part of the data is filtered. Select the whole block deliberately.
- Assuming hidden rows are deleted. Filtering hides rows; it does not remove them. Copying a filtered range can include hidden rows unless you copy only visible cells.
- Forgetting filters are saved with the file. Someone opening the workbook may see only part of the data. Clear filters before sharing if that would confuse readers.
Tips
- Use a table instead. Select the range and press Ctrl+T (Windows) or Cmd+T (Mac) to create an Excel Table. Tables get filter arrows automatically and expand to include new rows you type below.
- Filter by colour or icon if you use conditional formatting — the column arrow offers a “Filter by Color” option.
- Combine with sorting. The same drop-down menu includes Sort A to Z, Sort Z to A, and Sort by Color, so you can order the visible results without a separate step.
- Check the status bar. With rows filtered, selecting a column shows the count, sum, and average of visible cells only — a quick way to verify the filter is working.
- Use the search box in the filter menu to find a value in a long list instead of scrolling.
Troubleshooting
- Arrows appear in the wrong row. Excel treated a title row as data. Select the correct header row, or delete the extra title row above the headers and reapply Filter.
- No arrows appear at all. The sheet may be protected. Go to Review > Unprotect Sheet (you may need a password). Also check that you are not in cell edit mode — press Esc and try again.
- Some rows never appear. A blank row or a hidden row is splitting the range. Remove blank rows, unhide rows, and reapply the filter.
- Filter options are greyed out. The workbook may be in a shared or protected view. Save a local copy or ask the file owner to remove protection.
- Filters behave oddly after inserting rows. Insert rows inside the existing range rather than below it, or convert the range to a table so it resizes automatically.
Frequently Asked Questions
Can I filter by more than one condition in the same column?
Yes. Open the column arrow, choose Text Filters > Custom Filter (or the Number/Date equivalent), and set two conditions with And or Or.
Does filtering delete the hidden rows?
No. Filtering only hides rows. The data remains in the worksheet and reappears when you clear the filter.
Why do my filter arrows disappear when I reopen the file?
The filter may have been cleared, or the sheet may have been converted or protected. Reapply Data > Filter; if the sheet is protected, unprotect it first.
Can I filter in Excel for the web?
Yes. Select the data, open the Data tab, and click Filter. The available filter types are similar to the desktop app, though some advanced options may differ.
How do I copy only the visible rows after filtering?
Select the range, then use Home > Find & Select > Go to Special > Visible cells only, and copy. Pasting normally includes hidden rows.
Can I save a filter setup for later?
Filters are saved with the workbook. For repeatable views, consider converting the range to a table and using slicers, which are available in Excel tables.