The most common way filtering goes wrong is selecting a single cell before turning on AutoFilter: Excel then filters only the current region, and rows below a blank line stay visible. Select the whole table first, or format it as a table, and every column gets a filter arrow that acts on all rows. The fast method takes about 10 seconds; the thorough method takes a couple of minutes and survives new rows.
Fast Filter with AutoFilter
AutoFilter is the quickest route for a one-off look at a list. It works on any rectangular range, even one that has not been formatted as a table.
- Click any single cell inside your data. If the list has a blank row or blank column inside it, select the entire block manually instead, from the top-left cell to the bottom-right cell.
- Go to the Data tab on the ribbon and click Filter. Drop-down arrows appear in the header row of every column in the selected range.
- Click the arrow in the column you want to narrow. A menu opens with a search box, a value list with checkboxes, and commands such as Sort A to Z and Number Filters or Text Filters.
- Untick (Select All), then tick only the values you want to keep. For long lists, type a term in the search box first to shorten the list, then tick the matches.
- Click OK. Rows that do not match are hidden, not deleted. The row numbers on the left turn blue for the visible rows, and the filter arrow on the filtered column changes to a funnel icon.
To clear one column, click its funnel arrow and choose Clear Filter From followed by the column name. To clear everything, click Filter again on the Data tab; this removes the arrows and shows all rows.
Filtering by condition instead of by value
Value lists are fine for a handful of names. For numbers and dates, open the arrow and choose Number Filters or Date Filters. Options include Greater Than, Less Than, Between, Top 10, Above Average, and for dates Before, After and Between. A Between filter on an amount column, for example, keeps only rows from 100 to 500. The dialog shows the condition in plain words before you click OK, so you can check it.
Text columns get Text Filters with Contains, Begins With, Ends With and Does Not Contain. Contains is the useful one for partial matches: filtering a product column for "blue" keeps "Blue shirt" and "Dark blue mug" but not "Red shirt".
Thorough Filter with a Table
A formatted table keeps the filter arrows attached to the data as it grows. Add a row at the bottom and the table expands; the new row is included in the filter automatically. This is the method to use when the file will be updated by other people or by a weekly import.
- Click inside the data and press Ctrl+T, or go to Insert and click Table. The Create Table dialog appears with the range already filled in.
- Check that My table has headers is ticked if row 1 contains column names, then click OK. Filter arrows appear on the header row.
- Use the arrows exactly as in the fast method. Sorting and filtering inside a table affect only the table rows, so notes or totals placed below the table stay put.
- To add rows later, click the last cell of the last row and press Tab, or type in the row directly below the table; the table extends to include it.
Menu labels can differ slightly by version and by operating system, and the exact wording of filter dialogs varies. If a command is not where you expect, look under the Data tab first; filtering lives there in every modern desktop version.
Filter More Than One Column
Filters stack. Set a filter on the region column, then set another on the amount column, and Excel shows only rows that satisfy both. The status bar at the bottom left reports how many records match, for example "12 of 240 records found", which is the quickest way to confirm the combination is doing what you intended.
If a column already has a filter and you apply a second condition to the same column, the new condition replaces the old one rather than adding to it. To keep two conditions on one column, use a single dialog with And or Or: choose Custom Filter from the Number or Text Filters submenu, then set two lines, such as "is greater than 100" And "is less than 500". And requires both; Or requires either.
Filters also combine with sorting. Sort first if you want the visible rows in a particular order, because sorting a filtered list reorders only the rows currently shown.
Check That the Filter Worked
Three signals tell you the filter is active and correct. The row numbers of hidden rows skip and appear blue rather than black. The funnel icon replaces the arrow on every filtered column. And the status bar shows a count of visible records against the total.
If rows you expected are missing, the usual causes are trailing spaces in text values, numbers stored as text, or a filter left over from an earlier session. Trailing spaces make "Blue " and "Blue" separate entries in the value list. Numbers stored as text show a small green triangle in the corner of the cell and sort alphabetically rather than numerically. Clear all filters and check the raw values before filtering again.
If the arrows are missing entirely, the range was probably not selected as one block, or the sheet is protected. On a protected sheet, filtering is often disabled; the person who set the protection can allow it.
Which Method to Use
Use AutoFilter for a quick look at a static list you will not edit again. Use a table when the data will grow, when several people edit the file, or when you want the filter to survive inserted rows and columns. Use Custom Filter when one column needs two conditions at once, and use the status-bar count whenever the result matters, because it is the only on-screen check that the number of visible rows is right.
- If the list has blank rows inside it, select the whole block manually before clicking Filter.
- If new rows must be included automatically, convert the range to a table with Ctrl+T.
- If a value is missing from the filter list, clear filters and look for trailing spaces or text-formatted numbers.
- If two conditions are needed on one column, open Custom Filter and combine them with And or Or.
- If the total row must stay outside the filter, keep it below the table rather than inside the filtered range.
Filtering hides rows; it does not remove them. Copying a filtered range copies only the visible cells, which is useful for pasting a subset elsewhere, but deleting a filtered selection deletes only what is visible. Clear the filter before any delete operation on the whole sheet so no hidden rows are removed by accident.