FILTER Function
The Excel FILTER function returns records that satisfy a Boolean condition and spills the matching rows or columns into a dynamic result range.
| Excel FILTER Function | |||||||||||
| FILTER returns matching records as a dynamic array that spills into adjacent cells. | |||||||||||
| Source data, editable | Dynamic results | ||||||||||
| Name | Region | Amount | Example | Formula syntax | Name | Region | Amount | ||||
| Avery | North | $120 | Selected region | =FILTER(A12:C18,B12:B18=B22,"No matches") | Avery | North | $120 | ||||
| Blake | South | $90 | Spill row | Casey | North | $150 | |||||
| Casey | North | $150 | Spill row | Finley | North | $70 | |||||
| Devon | East | $80 | |||||||||
| Emery | South | $130 | Region AND threshold | =FILTER(A12:C18,(B12:B18=B22)*(C12:C18>=B23),"No matches") | Avery | North | $120 | ||||
| Finley | North | $70 | Spill row | Casey | North | $150 | |||||
| Gray | East | $110 | |||||||||
| No-match fallback | =FILTER(A12:C18,B12:B18=B24,"No matches") | No matches | |||||||||
| Criteria, editable | |||||||||||
| Region | North | ||||||||||
| Minimum amount | $100 | ||||||||||
| Missing region | West | ||||||||||
| Reliability checks | |||||||||||
| North criteria returns Avery, Casey, and Finley | OK | ||||||||||
| AND criteria returns Avery and Casey only | OK | ||||||||||
Overview
The Excel FILTER function evaluates a TRUE/FALSE condition for each source row or column and returns only the matching records. The result is dynamic: it spills into neighboring cells and resizes when the source data or criteria change.
Quick reference
Syntax: =FILTER(array, include, [if_empty])
Returns: A dynamic array of matching records or the specified empty-result value. (array)
Arguments:
array(required) — The source range or array to filter.include(required) — An aligned Boolean array where TRUE keeps an item.if_empty(optional) — The value returned when no records match.
The bracketed if_empty argument is optional. Supply it when a controlled result should appear if no rows or columns qualify; the Boolean include array must align with the filtered dimension.
Common uses
- Create a live subset for a selected region, owner, or status.
- Return records above or below a numeric threshold.
- Combine category and threshold conditions.
- Feed a changing subset into SORT or UNIQUE.
Calculations
FILTER evaluates the include expression against the source data. Every TRUE position is returned from array; every FALSE position is omitted. The result begins in the formula cell and spills into as many rows and columns as required.
For multiple conditions, multiplication acts as element-wise AND because only 1*1 remains TRUE. Addition acts as OR because any positive result is treated as TRUE. The include array must align with the source dimension being filtered.
The spill area must remain empty. If no records match, FILTER returns #CALC! unless if_empty supplies a message or other fallback.
Function behavior
Situation | Behavior |
|---|---|
TRUE include item | Corresponding source row or column is returned. |
FALSE include item | Corresponding source row or column is omitted. |
Multiple AND conditions | Multiply aligned Boolean expressions. |
Multiple OR conditions | Add aligned Boolean expressions. |
No matches | Returns |
Occupied spill range | Returns |
Source or criteria change | Recalculates and resizes automatically. |
Common errors
Misaligned include range
What happens:
The Boolean array does not map to the rows or columns in array, so FILTER returns an error.
Better approach:
Use bounded source and include ranges with matching dimensions.
Blocking the spill range
What happens:
FILTER returns #SPILL! because existing content occupies a required result cell.
Better approach:
Reserve an empty output area and avoid typing inside it.
Omitting the empty-result behavior
What happens:
A valid zero-match case returns #CALC!.
Better approach:
Supply a meaningful if_empty result when no matches are expected during normal use.
Example
Example 1 — Filter by Region
=FILTER(A12:C18,B12:B18=B22,"No matches")
With B22 set to North, the workbook returns three rows: Avery, Casey, and Finley.
Example 2 — Change the Referenced Criterion
The same formula updates when B22 changes. Setting the criterion to South would return the two South rows without changing the source table.
Example 3 — Region AND Minimum Amount
=FILTER(A12:C18,(B12:B18=B22)*(C12:C18>=B23),"No matches")
With region North and minimum amount $100, the spilled result contains Avery at $120 and Casey at $150.
Example workbook
The workbook contains FILTER Example and Notes. The main sheet has seven editable synthetic records, editable region and minimum criteria, three live FILTER formulas, and two IF/AND checks. It demonstrates a single condition, an AND condition, and a no-match fallback; both checks display OK.
Key takeaway
FILTER returns the source items whose aligned Boolean tests are TRUE; keep the spill area empty and define the expected no-match result.