The FILTER function extracts every row that meets a condition and spills the results into a live range — no AutoFilter clicks, no copy-paste, no helper columns. When the source data changes, the filtered output updates by itself.
A2:C10 where region (column B) equals F1:
#CALC!.
The example
An orders list. We want just the West rows pulled out automatically.
| A | B | C | |
|---|---|---|---|
| 1 | Order | Region | Amount |
| 2 | 1001 | East | $120 |
| 3 | 1002 | West | $80 |
| 4 | 1003 | East | $200 |
| 5 | 1004 | West | $300 |
| 6 | 1005 | South | $50 |
The formula
Entered in a single cell, the result spills down and across to fill the matching rows:
How it works
FILTER keeps only the rows where the condition is TRUE:
- The first argument,
A2:C6, is the data to return — all three columns. - The second argument,
B2:B6="West", builds a column of TRUE/FALSE, one per row. FILTER keeps the rows marked TRUE. - The result spills automatically into the cells below and to the right; you only enter the formula once, in the top-left cell.
- The third argument,
"No matches", is returned instead of a#CALC!error when no row qualifies.
Try it: interactive demo
Pick a region and (optionally) a minimum amount; the FILTER formula and the spilled result update live.
Variations
Filter on two conditions (AND)
Multiply conditions for AND — West and at least $100:
Filter on either condition (OR)
Add conditions for OR — West or South:
Filter and sort in one step
Wrap FILTER in SORT to return matches highest-amount first:
Pitfalls & errors
#CALC! — empty filter. No rows matched and you omitted the third argument. Always supply an if_empty value such as "No matches" or "".
#SPILL! — blocked range. Something is sitting in the cells the result needs to fill. Clear everything below and to the right of the formula cell.
Condition length must match. The condition array (B2:B6) must have the same number of rows as the data (A2:C6). Mismatched heights return #VALUE!.
Not in Excel 2019 or older. FILTER requires Excel 365 or 2021. Older versions show #NAME? — use AutoFilter or an Advanced Filter there instead.
Practice workbook
Frequently asked questions
How do I filter data with a formula in Excel?
How do I filter on more than one condition?
Why does FILTER return #CALC!?
Does FILTER work in Excel 2019?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class