Excel 2016’s filter formulas let you dynamically sort, group, and extract data based on conditions—without relying on manual sorting or Power Query. This saves hours of repetitive work and keeps your analysis clean and adaptable. You’ll only need basic spreadsheet skills and Excel 2016 installed; no additional tools are required.
What You'll Need
- A workbook with a table or range of data (at least one column with filtering criteria).
- Excel 2016 installed on your computer (versions later than 2016 may use slightly different menus).
- A column labeled with a relevant filter term (e.g., "Status," "Date," or "Sales").
- No extra software—Excel’s built-in Data Filter feature works for formulas.
Step-by-Step
-
Open your data in Excel 2016. Click the Data tab in the ribbon to ensure you’re in the correct environment. If your data’s in a simple range (not a table), convert it to a table first:
- Select all cells, then press
Ctrl+Tto convert. - Click anywhere in the range and name it (e.g., "SalesData").
- Select all cells, then press
- Apply a basic filter. On the Data tab, click the Filter button (a dropdown arrow in the Sort & Filter group). This adds a filter icon (a dropdown list) to each column header.
- Select filter criteria manually. Click the dropdown for a column (e.g., "Status") and pick values to display. For example, if your data lists "Approved," "Pending," and "Rejected," choose only "Approved." All matching rows will highlight.
-
Use a formula inside filtered rows. To check if a cell meets criteria, add a formula in any visible row. For example:
- Click the cell (e.g., A2) where you want the result.
- Type
=IF(B2="Approved", "Yes", "No")(assuming "Status" is column B). - Press
Enterto apply it.
-
Advanced filtering with formulas. For conditional logic across filtered rows, use:
- Create a helper column with formulas like
=SUMPRODUCT(--(C2:C10="Approved"))to count matches. - Use
FILTER(Excel 2019+) if available, but 2016 lacks it. Instead, apply aSORTformula after filtering.
- Sort by the filtered column to group results (Data > Sort A to Z).
- Apply a second filter to extract just the needed data.
- Create a helper column with formulas like
- Hide/unhide filtered data. With rows filtered, click the Sort & Filter dropdown and choose Clear to reset.
Common Mistakes
Many users miss these pitfalls:
- Forgetting a helper column. Formulas in filtered rows only check visible values. For dynamic logic, add a column with raw data and formulas extending it.
- Ignoring case sensitivity. Excel’s filters are case-sensitive unless you use
=UPPER()or=LOWER()in formulas. - Overlooking reference ranges. Use absolute references (e.g.,
$A$1:$C100) to avoid errors when filtering. - Using older formulas like
COUNTIFwithout range checks. Always confirm your formula covers the filtered data.
Tips
Pro tips for efficiency:
- Leverage named ranges. Assign names to columns (e.g., "Status") and use
=IF(NAME=“Status”, “Yes”, “No”)for dynamic checks. - Use formulas in Tables. In a Table, formulas automatically update when filtering changes—no helper columns needed.
- Sort before filtering. For complex queries (e.g., filtering by date range), sort first to group data logically.
- Copy formulas to new rows. Select a filtered row with a formula, copy it (Ctrl+C), then paste as values (Ctrl+V > Paste Special > Values) to clean up.
- Test edge cases. Try filtering on empty values or mixed formats (e.g., “Yes,” “yes,” “YES”) to avoid errors.
Troubleshooting
If filters or formulas aren’t working:
-
Check for hidden rows. Press
Ctrl+Hto find hidden rows—filtering may exclude them. Unhide them to ensure formulas see all data. - Verify formula references. Right-click the formula cell and choose Format Cells. If references are wrong (e.g., only showing column A), expand the range or use absolute references.
- Update Excel. Go to File > Office Account > Update Options > Update Now to ensure you have the latest filters and formulas.
- Restart Excel. Open a new workbook and repeat steps. Corrupted filters can cause glitches.
- Use a different data source. If formulas fail, try copying the data into a new workbook to isolate the issue.
- Check for errors. If formulas return #N/A or #VALUE!, review references and ensure no hidden characters (e.g., non-breaking spaces) interfere.
Frequently Asked Questions
How do I filter rows with a specific date range in Excel 2016?
Use an IF formula in a helper column, then filter that column. For example:
=IF(AND(YEAR(B2)>2022, YEAR(B2)=2023), "2023", "")
Then filter that column for “2023.” Alternatively, sort by date first, then use a SUMIF formula to pull totals.
Can I filter data based on multiple conditions at once?
Yes, use nested IFs or AND/OR logic in formulas. Example:
=IF(AND(B2="Approved", YEAR(C2)>2021), "Qualified", "")
Apply this to a helper column and filter by that column.
Why do my formulas only work in visible filtered rows?
Excel 2016’s filtering hides rows, which breaks dynamic formulas. Use absolute references (e.g., $B$2) or a helper column with raw data. For tables, formulas update automatically when filtering changes.
How do I count how many rows meet criteria after filtering?
Add a helper column with =COUNTIF(A2:A100, "Approved") (adjust range as needed). Alternatively, use SUMIF in a sorted range to count distinct values.
Is there a way to reverse a filter without clearing the whole dataset?
No, but you can save the filtered view as a screenshot or use a PivotTable to extract filtered data permanently. Clear filters by going to Data > Sort & Filter > Clear.
Why does my FILTER function (if available) not work in Excel 2016?
The FILTER function is a new Excel feature introduced in 2019. For 2016, use a combination of IFs, SUMIFs, or PivotTables with dynamic filters. Example:
=FILTER(A:A, B:B="Approved")
would require a helper column or a workaround like SORT + SUMIF.
Need deeper customization? Consider migrating to a newer Excel version or Power Query (Free for Excel 2016 via “Get & Transform”).