WP Workflow Picks
excelformulasfilter

Excel FILTER Function: Syntax, Multiple Criteria and Fixes

Learn how the Excel FILTER function works, how to filter with AND/OR criteria and partial matches, and how to fix #CALC!, #SPILL!, #VALUE! and #NAME? errors.

WP Workflow Picks team · · 5 min read · 5 sources
Churchill Club Top 10 Tech Tech Trends Debate 2013 — I chose Deep Learning / Machine Learning
Photo: jurvetson (CC BY 2.0) via Openverse

The Excel FILTER function returns every row (or column) of a range that meets conditions you set, and the results update automatically when the data changes. The syntax is =FILTER(array, include, [if_empty]), and it works in Excel for Microsoft 365, Excel 2024 and Excel 2021.

Unlike the Filter button on the Data tab, FILTER doesn’t hide rows in place. It copies the matching rows into a new spot on the sheet as a “spilled” dynamic array, so you can build live reports, dropdown-driven lookups and dashboards without macros.

Syntax and arguments

According to Microsoft’s FILTER documentation, the function takes three arguments:

ArgumentRequired?What it does
arrayYesThe range or array you want to filter, such as A2:D100.
includeYesA Boolean (TRUE/FALSE) array whose height (or width) matches array. Rows where it’s TRUE are kept.
if_emptyNoWhat to return when nothing matches, for example "No results".

The include argument is where the logic lives. A test such as C2:C100="East" produces one TRUE or FALSE per row, and FILTER keeps the TRUE rows.

Your first FILTER formula

Say you have a sales list in A2:D100 with Region in column C and Amount in column D.

  1. Click an empty cell with plenty of free space below and to the right of it.
  2. Type =FILTER(A2:D100, C2:C100="East", "No matches") and press Enter.
  3. Excel spills every East row into the cells below. You don’t need Ctrl+Shift+Enter.
  4. To make it interactive, put the region in a cell (say G1) and use =FILTER(A2:D100, C2:C100=G1, "No matches"). Change G1 and the results update.

Tip: if your data is formatted as an Excel Table, use structured references such as =FILTER(Sales, Sales[Region]=G1, "No matches"). Microsoft notes that the array then resizes automatically as you add or remove rows.

Filtering with multiple criteria

FILTER has only one include argument, so you combine several conditions with simple Boolean maths. Exceljet’s multiple-criteria guide explains the idea: TRUE behaves like 1 and FALSE like 0.

AND logic: multiply the conditions

To keep rows where Region is East and Amount is over 500:

=FILTER(A2:D100, (C2:C100="East")*(D2:D100>500), "No matches")

A row only produces 1 when both tests are TRUE (1 × 1). Any FALSE turns the result into 0 and the row is dropped. Wrap each condition in its own parentheses.

OR logic: add the conditions

To keep rows where Region is East or West:

=FILTER(A2:D100, (C2:C100="East")+(C2:C100="West"), "No matches")

Any row where at least one test is TRUE ends up with a value of 1 or more, which FILTER treats as TRUE. Exceljet also shows an alternative using MATCH for longer lists of allowed values.

A common mistake is writing C2:C100={"East","West"} and expecting an OR test. That doesn’t work as a shortcut inside include; stick with the + pattern or MATCH.

Mixing AND and OR

Parentheses control the order. To get East or West rows with an Amount over 500:

=FILTER(A2:D100, ((C2:C100="East")+(C2:C100="West"))*(D2:D100>500), "No matches")

Without the outer parentheses around the OR group, multiplication happens first and the amount test only applies to West.

Partial text matches

FILTER doesn’t accept wildcards like "*north*" in a simple comparison. Instead, Exceljet recommends wrapping SEARCH in ISNUMBER:

=FILTER(A2:D100, ISNUMBER(SEARCH("north", B2:B100)), "No matches")

SEARCH returns a position number when the text is found and an error when it isn’t, so ISNUMBER turns that into TRUE or FALSE. SEARCH is case-insensitive; use FIND instead if you need a case-sensitive match.

Combining FILTER with other dynamic array functions

FILTER becomes far more useful when you nest it with its siblings. These all spill and chain without special keystrokes.

  • Sort the results: =SORT(FILTER(A2:D100, C2:C100="East"), 4, -1) sorts the filtered rows by the fourth column, largest first.
  • Remove duplicates: =UNIQUE(FILTER(B2:B100, C2:C100="East")) lists each customer in the East region once.
  • Return only certain columns: =FILTER(CHOOSECOLS(A2:D100, 1, 4), C2:C100="East") returns just columns 1 and 4. You can also simply point array at a narrower range, as long as it’s the same height as the include test.
  • Count matches: =ROWS(FILTER(A2:D100, C2:C100="East")) counts the returned rows (it will error if nothing matches and you leave out if_empty).

If a nested function returns #NAME?, your Excel version may not include it yet, so test before sharing the workbook.

Fixing common FILTER errors

Most FILTER problems fall into a handful of error codes. Here’s what each one usually means, based on Microsoft’s documentation and the Ablebits FILTER tutorial.

ErrorUsual causeFix
#CALC!Nothing matched and there’s no if_empty. Microsoft says Excel “does not currently support empty arrays.”Add a third argument, e.g. "No results" or "".
#SPILL!Cells in the spill area aren’t empty.Clear the blocking cells or move the formula somewhere with free space.
#VALUE!include isn’t the same height (or width) as array.Make sure every range covers the same rows, e.g. all 2:100.
#NAME?Your Excel version doesn’t have FILTER, or the name is misspelled.Use Microsoft 365, Excel 2024 or Excel 2021, or fall back to AutoFilter.
#N/A / other errorsA value in include is itself an error. Microsoft notes FILTER returns an error in that case.Clean the source data or wrap the test in IFERROR.

A note on linked workbooks

Microsoft notes that dynamic arrays have limited support between workbooks: a FILTER formula pointing at another file only works when both workbooks are open. Keep the source file open, or bring the data into the same workbook.

Which Excel versions support FILTER?

As of November 2026, Microsoft lists FILTER for Excel for Microsoft 365 (Windows and Mac), Excel 2024, Excel 2021, and the iPad and mobile apps. Older perpetual licences such as Excel 2019 and 2016 don’t include it. Some third-party guides also list Excel for the web, but the Microsoft page we checked doesn’t spell that out, so test it yourself if web access matters. Version lists can change, so check Microsoft’s page for the current list.

If you share files with people on older versions, FILTER won’t work for them; sources report a #NAME? error in versions without the function. For mixed teams, the classic AutoFilter (Data > Filter) or Advanced Filter is still the safe choice.

FILTER vs. AutoFilter: when to use which

FILTER functionAutoFilter (Data > Filter)
Changes the original data viewNo, results go elsewhereYes, hides rows in place
Updates automaticallyYesRe-apply after data changes
Works in older Excel versionsNo (2021 and later, plus 365)Yes
Good forReports, dashboards, formulas that feed other formulasQuick ad-hoc exploration

A practical approach is to use AutoFilter while you explore a dataset, then switch to FILTER once you know which view you need to keep on a report sheet.

Quick checklist

  1. Leave empty space for the results to spill into.
  2. Keep every range the same height.
  3. Wrap each condition in parentheses; multiply for AND, add for OR.
  4. Always fill in if_empty so an empty result doesn’t break the sheet.
  5. Use an Excel Table as the source so new rows are picked up automatically.

Frequently asked questions

Why does my FILTER formula show #NAME? instead of results? +

Your version of Excel most likely doesn't have FILTER. It's available in Excel for Microsoft 365, Excel 2024 and Excel 2021; older perpetual versions such as Excel 2019 don't recognise the function name.

Can FILTER return only some of the columns? +

Yes. Point the array argument at just the columns you want, or wrap the source in CHOOSECOLS to pick columns by number. The include test can still look at any column of the same height.

Is FILTER case-sensitive? +

A plain comparison like range="East" is not case-sensitive. For partial matches, SEARCH is case-insensitive and FIND is case-sensitive, so swap in FIND inside ISNUMBER when case matters.

Does FILTER update automatically when my data changes? +

Yes, it recalculates like any formula. If your source is an Excel Table and you use structured references, the range also grows and shrinks as you add or remove rows.

Sources

  1. FILTER function - Microsoft Support (support.microsoft.com)
  2. Excel FILTER function - Exceljet (exceljet.net)
  3. FILTER with multiple criteria - Exceljet (exceljet.net)
  4. FILTER with partial match - Exceljet (exceljet.net)
  5. Excel FILTER function - dynamic filtering with formulas - Ablebits (ablebits.com)
About this guide. Researched and drafted with AI assistance from the sources above, then checked against our editorial rules. It reflects what was publicly known on November 8, 2026; details can change, so confirm with the official source before acting on it. How we work →

Our reviews

In-depth reviews from Workflow Picks that go with this topic.

Keep reading