Adding filter criteria in Excel allows you to instantly view only the data rows that meet specific conditions, hiding the rest. This is done by selecting a cell within a dataset, clicking the Filter button on the Data tab, and then clicking the dropdown arrow on a column header to select your criteria. You can filter by text, numbers, dates, and more. This guide covers the standard desktop version of Excel, as the interface on mobile or web versions differs slightly.
What You'll Need
- A computer with Microsoft Excel installed (the steps apply to Excel 2016, 2019, and Microsoft 365).
- A dataset with clear column headers (Excel requires headers to create filters correctly).
- A basic understanding of the data you want to find (e.g., "all orders over $500" or "employees in the Sales department").
Step-by-Step
- Prepare your data. Ensure your data is in a contiguous range of cells, meaning there are no blank rows separating your data sections. The very first row of your data should contain headers (e.g., "Name", "Date", "Amount"). If you have blank rows at the top or bottom, Excel may not be able to detect the data range correctly.
- Select the data range. Click on any cell within your dataset. To include the entire table, you can click the "Select All" button (the small triangle in the top-left corner of the grey header bar) or simply drag your mouse to highlight the entire group of cells containing your data and headers.
- Open the Filter menu. Go to the top menu bar and click the "Data" tab. In the "Sort & Filter" group, click the button labeled "Filter". You will see a small funnel icon appear next to each of your column headers. This indicates that filters are now active for those columns.
- Choose a column to filter. Click the dropdown arrow that appears in the header of the column you want to filter. For example, if you want to find specific dates, click the arrow next to the "Date" column.
- Select specific items. In the menu that drops down, you will see a list of all unique items in that column. Check the boxes next to the specific items you want to see. You can select multiple items if you want to see rows that contain any of those values (a logical OR). For example, you might select "New York" and "California" to see all orders from either state.
- Use the "Search" box. If your list is long, type into the search box at the top of the dropdown menu. Excel will instantly filter the list to show only items that match your text. This is the fastest way to find a specific entry among thousands of rows.
- Apply text filters. If you want to filter based on text that is not an exact match, click the "Text Filters" option at the bottom of the dropdown menu. This will reveal sub-menus like Contains, Does Not Contain, Starts With, and Ends With. Selecting "Contains" and typing "Sales" will show you all rows where the cell contains the word "Sales" anywhere within it.
- Apply number filters. For numerical columns (like Price or Quantity), clicking the dropdown will offer options like Equals, Greater Than, Less Than, and Between. Selecting "Greater Than" and typing "100" will display only rows with a value exceeding 100.
- Apply date filters. Date columns offer specialized options. You can filter for items occurring on a specific day, or within a range of days, weeks, months, or years. You can also select options like Today, Yesterday, Next Week, or This Month. The interface is designed to be intuitive, allowing you to quickly select time periods without typing dates.
- Clear a filter. To remove the filter from a specific column, click the dropdown arrow again and select "Clear Filter from [Column Name]". To remove all filters from the entire worksheet at once, go back to the Data tab and click the "Filter" button. The funnel icons will disappear from the headers, and all data will be restored.
Common Mistakes
One of the most common errors when learning how to add filter criteria is failing to include a header row. Excel relies on the first row to identify which columns contain text versus numbers versus dates. If the first row is a label like "My Data" instead of the specific field name, the filter dropdowns may appear empty, or Excel may not apply the correct filter type (e.g., showing text filters on a number column). Always ensure your headers are clear and in the first row of the dataset.
Another frequent mistake is filtering data that has blank rows interspersed within it. If you have a dataset of 100 rows but a blank row exists at row 50, Excel typically treats the data as two separate blocks: rows 1 through 49 and rows 51 through 100. When you apply a filter, it will only be applied to the active block of data. To fix this, you must delete or move the blank rows so that the data is a single contiguous block.
Users also often try to filter by selecting a cell and then using keyboard shortcuts without first activating the filter mode. While you can select a cell and type a criterion, this does not automatically hide the other rows. You must first click the Filter button on the Data tab to create the dropdown arrows, and then use the arrows to apply the criteria.
Tips
Use the Color Filter option if your data includes background colors or fonts. In the column header dropdown, look for the option to filter by Cell Color or Font Color. This is a powerful way to visually separate data without creating complex formulas. For instance, you could highlight all high-priority items in red and then filter by "Cell Color" to see only those items instantly.
Take advantage of the Top 10 filter for numerical data. Instead of typing "Greater Than" and a specific number, you can select "Top 10 Items" or “Top 10%” from the number filter menu. This is a quick way to analyze the top performers, the most expensive items, or the smallest quantities without having to know the exact threshold number beforehand.
Learn to use the AND/OR logic correctly. By default, selecting multiple items from a list creates an OR condition (display rows matching item A OR item B). However, if you need to filter by two different criteria in different columns (e.g., "Sales Region = East" AND "Status = Shipped"), you must apply filters to multiple columns simultaneously. Excel will only show rows that meet the condition of the first column AND the condition of the second column.
Troubleshooting
Filters are not working or the dropdowns are missing. If you clicked the Filter button but the dropdown arrows did not appear, check if you are in a cell that is not part of the data range. Select a cell within the dataset and try again. Also, ensure that you have not accidentally merged cells in your header row. Merged cells can break the filter functionality in Excel.
The filter dropdown only shows a few items or looks different. If a column is formatted as a specific data type (like a date or a number), the dropdown menu will be tailored to that type. If the list looks like a simple list of numbers, it is likely in text format. You can verify this by right-clicking a number in the column and selecting "Format Cells." If it says "Number," try converting the text to numbers by multiplying the column by 1 (in a helper column) or using the "Text to Columns" feature to refresh the format.
Filters are applied but the result is empty. If you select criteria and see no data, you may have a logical error in your selection. For example, if you have dates for the year 2023 and you filter for items that occurred before January 1st, 2023, the result will be empty. Verify that the criteria you entered matches the data format. If you are filtering a date column, ensure you aren't typing the date into the box labeled "Values" when you should be selecting from the date-specific options.
I applied a filter but I cannot see the total row. The total row feature in Excel is separate from the standard filter. If you want to see the sum, average, or count of the currently filtered data, you must enable the Total Row. Go to the "Data" tab, look for the "Totals" button, and click it. Excel will automatically add a row at the bottom of your data and suggest a total (like Sum) based on the type of data in the last column. You can change this to Count, Average, or Max by clicking the dropdown arrow on that new total cell.
Frequently Asked Questions
Can I apply filters to multiple columns at once?
Yes. You can click the filter dropdown on any number of columns to apply criteria. Excel will display only the rows that satisfy *all* the criteria you have applied across all columns. This allows for very specific data extraction.
Does filtering delete data?
No. Filtering does not delete or move any data. It simply changes the display so you can only see the rows that match your criteria. The original, full dataset remains intact and unaltered in the background. You can clear the filters at any time to see everything again.
How do I copy only the filtered results to a new sheet?
After you have applied your filters and are happy with the visible data, you can copy it. Select the visible cells (you can do this by clicking the top-left cell, then holding Shift and clicking the bottom-right cell of the visible data). Press Ctrl+C to copy, go to a new sheet, and paste (Ctrl+V). This will paste only the rows that were visible after filtering.
Why are my dates not filtering correctly?
Date issues usually arise from mixed formatting. If some dates are stored as text and others as real dates, the filter may not group them together. Ensure all dates in the column are recognized as dates by Excel. You can convert text to dates by selecting the column, going to the "Data" tab, and clicking "Text to Columns" and selecting "Finish" without making any changes, which often forces Excel to recognize them.
Can I use filters on a table created with Power Query?
Yes, tables created with Power Query (also known as Get & Transform) are fully compatible with standard Excel filters. You can apply filters directly to the columns in the Power Query Editor window to transform your data before it even loads into the main sheet, or you can apply filters to the resulting table in Excel just like any other dataset.