How to Apply Filter in Excel Rows: Step-by-Step
In this article
To apply a filter to Excel rows, select any cell in your data range, go to the Data tab, and click Filter. Excel adds drop-down arrows to the header row of each column, and you can then use those arrows to show only the rows that match the values you choose. This works in Excel for Microsoft 365, Excel 2021, 2019, 2016, and Excel for Mac; the exact button labels can differ slightly by version, device, or region. Before you start, make sure your data has a single header row with no blank rows or merged cells inside the range, because filters rely on that structure.
What You'll Need
- A spreadsheet with data arranged in columns, with one header row at the top.
- Excel for Windows, Mac, or the web (the web version has a reduced but working filter feature).
- No blank rows or fully blank columns inside the data range you want to filter.
- No merged cells in the header row, as merged cells can prevent filters from applying cleanly.
Step-by-Step
- Select your data. Click any single cell inside the range. Excel will usually detect the whole block automatically. If it does not, press Ctrl+A (Windows) or Command+A (Mac) to select the current region, or drag to select the full range including headers.
- Open the Data tab. On the ribbon, click Data. On Excel for Mac, the Data tab is also on the ribbon; on Excel for the web it appears in the top menu bar.
- Click Filter. The Filter button sits in the Sort & Filter group. In some layouts it is labelled with a funnel icon. Once clicked, each header cell gets a small drop-down arrow.
- Open a column's filter menu. Click the arrow in the header of the column you want to filter. A menu appears with sorting options and a list of unique values from that column.
- Choose your filter type. Tick the checkboxes for the values you want to keep, or use Text Filters, Number Filters, or Date Filters for conditions like equals, contains, greater than, or between. Click OK to apply.
- Check the result. Rows that do not match are hidden, not deleted. The row numbers on the left turn blue to show a filter is active, and the header arrow changes to a funnel icon.
- Add more filters if needed. Repeat step 4 on other columns. Filters combine with AND logic: a row must match every active column filter to stay visible.
- Clear a filter. Open the column's filter menu and choose Clear Filter From [column name]. To remove all filters at once, go back to Data and click Filter again, or use Clear in the Sort & Filter group.
Common Mistakes
- Leaving blank rows in the data. Excel treats a blank row as the end of the range, so rows below it are excluded from the filter. Delete or fill blank rows first.
- Merged header cells. Merged cells in the header row can stop the filter arrows from appearing correctly. Unmerge them before filtering.
- Filtering only part of the range. If you select just a few cells, Excel may ask whether to expand the selection. Choose Expand the selection to include the whole table.
- Confusing hidden rows with deleted rows. Filtering hides rows; it does not remove them. Copying visible cells only requires the Visible cells only option (Alt+; on Windows) or the Copy Visible Cells command, otherwise hidden rows get copied too.
- Expecting filters to update automatically. If you add new rows below the filtered range, they may not be included. Convert the range to a table (Ctrl+T) so the filter expands with new data.
Tips
- Use Ctrl+Shift+L (Windows) or Command+Shift+L (Mac) to toggle filters on and off quickly.
- Convert your range to an Excel Table before filtering. Tables keep the filter arrows attached when you add rows or columns, and they name columns automatically.
- Use Number Filters > Top 10 to show only the highest or lowest values in a column without sorting the whole sheet.
- Combine filters with Sort to put the visible rows in a useful order. Sorting while filtered reorders only the visible rows by default in modern Excel.
- If you need to share a filtered view without hiding rows for others, copy the filtered data to a new sheet instead of relying on the filter state.
Troubleshooting
- The Filter button is greyed out. This usually means the sheet is protected or the workbook is shared in a mode that blocks filtering. Go to Review > Unprotect Sheet if you have the password, or check Review > Share Workbook and turn off sharing if it is enabled.
- No arrows appear after clicking Filter. Check that you selected a cell inside the data range and that the header row is a single row. If the range contains merged cells, unmerge them and try again.
- Some rows never show up in the filter list. Blank cells in the column are listed as (Blanks). If entire rows are missing, the filter range may not include them; select the full range or convert to a table.
- Filter arrows disappeared after saving. The filter may have been cleared, or the file was saved in a format that does not preserve filters. Save as .xlsx rather than .csv, which cannot store filter settings.
- Filtering is slow on a large sheet. Very large ranges with many unique values can lag. Convert the range to a table, remove unnecessary columns from the filter range, or use Advanced Filter for complex criteria.
Frequently Asked Questions
Can I filter by more than one column at once?
Yes. Apply a filter to one column, then apply another to a different column. Rows must match all active filters to remain visible.
Does filtering delete rows?
No. Filtering only hides rows that do not match. Clearing the filter brings them back. Deleting rows is a separate action.
How do I filter rows based on a partial text match?
Open the column's filter menu, choose Text Filters > Contains, and type the text. This shows rows where the cell contains that text anywhere.
Why can't I see the filter arrows on my header row?
The most common causes are merged header cells, a protected sheet, or a selection that does not include the full data range. Unmerge cells, unprotect the sheet, and reselect the range.
Can I copy only the visible rows after filtering?
Yes. Select the range, then use Home > Find & Select > Go To Special > Visible cells only (or press Alt+; on Windows), then copy and paste. Otherwise hidden rows are copied too.
Does filtering work in Excel for the web?
Yes, basic filtering works in Excel for the web. Some advanced filter options may be limited compared with the desktop app, so use the desktop version for complex criteria.