To add two filters in Excel, you first enable the Filter feature on your data range and then apply a specific criterion to two different columns. This process allows you to narrow down your dataset by combining multiple requirements—for example, showing only "Sales" employees who live in "New York." By applying a second filter, Excel further restricts the visible rows to only those that meet both the first and second conditions simultaneously.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A dataset organized in a table format with clear column headers in the top row.
- Data that is contiguous, meaning there are no entirely empty rows or columns breaking up the dataset.
Step-by-Step
- Prepare Your Data Range: Ensure your data has a header row. If your data is not already formatted as a Table, click anywhere inside your data range. This ensures Excel recognizes where your dataset begins and ends.
- Enable the Filter Feature: Go to the Data tab on the top ribbon. In the Sort & Filter group, click the Filter button. You will now see small drop-down arrows appear in the header cell of every column in your range. Note that labels and menu locations may differ slightly depending on your version of Excel or your operating system.
- Apply the First Filter: Click the drop-down arrow in the header of the first column you wish to filter. In the menu that appears, uncheck (Select All) to clear all options, then check the box next to the specific value or values you want to keep. Click OK. Your list will now shrink to show only the rows that match this first criterion.
- Apply the Second Filter: Move to the second column you want to filter. Click the drop-down arrow in that column's header. Just as before, uncheck (Select All) and select the specific value(s) you need. Click OK.
- Verify the Result: Excel has now applied an "AND" logic to your data. The rows currently visible are those that satisfy both the first filter and the second filter. You can tell a filter is active because the drop-down arrow icon changes to a small funnel icon.
- Clear or Modify Filters: To change one of the filters, click the funnel icon in that column and change your selection. To remove all filters and see the full dataset again, go back to the Data tab and click the Clear button in the Sort & Filter group.
Common Mistakes
One of the most frequent errors is having a completely blank row or column within the dataset. When you click the Filter button, Excel scans the surrounding cells to determine the range. If it hits a blank row, it may assume the dataset has ended, meaning any data below that blank row will not be included in your filters. Always ensure your data is a solid block.
Another common mistake is confusing "AND" logic with "OR" logic. When you apply a filter to Column A and then apply a second filter to Column B, Excel only shows rows that meet both conditions. If you want to see rows that meet either condition (e.g., anyone in Sales OR anyone in New York), standard column filtering cannot do this. You would instead need to use the Advanced Filter feature or a helper column with a formula.
Users also sometimes forget to select the entire range before applying filters if their data is not formatted as an official Table. While Excel is generally good at guessing the range, manually highlighting the entire header row before clicking Filter is a safer way to ensure no columns are missed.
Tips
Convert to an Official Table: Instead of just using the Filter button, select your data and press Ctrl + T (Windows) or Cmd + T (Mac) to turn your range into an official Excel Table. Tables automatically enable filters and, more importantly, they expand automatically. If you add new rows to the bottom of a Table, the filters will apply to the new data without you having to reset the filter range.
Use Search for Large Lists: If your column has hundreds of unique values, scrolling through the checklist is inefficient. Use the Search box inside the filter drop-down menu to quickly find the specific term you are looking for.
Number and Date Filters: For columns containing numbers or dates, don't just use the checkboxes. Use the Number Filters or Date Filters sub-menus. These allow you to set ranges, such as "Greater Than," "Less Than," or "Between," which is far more powerful than selecting individual values.
Slicers for Visual Filtering: If you have converted your data into a Table, you can insert Slicers (found under the Table Design tab). Slicers are visual buttons that sit on top of your sheet. Clicking a Slicer button is the same as applying a filter, but it is much faster and allows you to see exactly which filters are active at a glance.
Troubleshooting
The Filter Button is Greyed Out: If you cannot click the Filter button, check if your worksheet is protected. Go to the Review tab and check if Unprotect Sheet is visible. If the sheet is protected, you cannot add filters unless the person who protected the sheet allowed "Use AutoFilter" in the protection settings.
Some Data is Missing After Filtering: If you suspect the filter is hiding data that should be visible, check for leading or trailing spaces in your cells. For example, "New York " (with a space at the end) is treated as a different value than "New York". This often happens with data imported from other software. Use the TRIM function to clean your data before filtering.
Filters Aren't Applying to All Rows: This usually happens because of the blank row issue mentioned earlier. To fix this, highlight your entire dataset manually (click the top-left cell, hold Shift, and click the bottom-right cell) before clicking the Filter button. This forces Excel to include every selected cell in the filtering process.
The Drop-Down Arrows Disappeared: This can happen if you accidentally deleted the header row or if you clicked Filter again to toggle the feature off. Simply go back to the Data tab and click Filter to restore them.
Frequently Asked Questions
Can I add more than two filters?
Yes, you can apply filters to as many columns as you have in your dataset. Each additional filter further narrows the results, acting as an additional "AND" requirement.
How do I filter for two different values in the same column?
In the filter drop-down menu, simply check multiple boxes. For example, if you want to see both "East" and "West" regions, check both boxes. This acts as "OR" logic within a single column.
Will filtering my data delete the rows that are hidden?
No, filtering only hides rows from view. The data is still there and remains intact. You can bring it back by clearing the filters.
Can I filter by color?
Yes. If you have manually highlighted cells or used Conditional Formatting, click the filter drop-down arrow and select Filter by Color to choose the specific fill or font color you want to isolate.
Does filtering affect the sum of my data?
Standard formulas like =SUM() will still calculate the total of all cells, including the hidden ones. If you want to sum only the visible filtered rows, use the =SUBTOTAL(109, range) function instead.
How do I quickly clear all filters at once?
Instead of clearing each column individually, go to the Data tab and click the Clear button (next to the Filter toggle). This removes all active filters across the entire sheet instantly.