Back to functions
Lookup & Reference2026-03-182 related articles

FILTER Function in Excel

Return only the rows or columns in an array that meet criteria you define.

Syntax

FILTER(array, include, [if_empty])

Arguments

array

Required

The range or array to filter.

include

Required

A TRUE/FALSE array that indicates which records to keep.

if_empty

Optional

The value to return if no records match the filter criteria.

What it returns

Returns a filtered array containing only the rows or columns that meet the criteria.

What FILTER does

FILTER returns only the records that meet one or more logical tests. It is one of Excel's dynamic array functions, so the results spill into neighboring cells automatically.

Practical examples

Filter rows for one region

=FILTER(A2:D20,C2:C20="West","No matches")

This returns only the rows from A2:D20 where the region in column C is West.

Filter rows with two conditions

=FILTER(A2:D20,(B2:B20="Open")*(D2:D20>=1000),"No matches")

Use * to combine conditions with AND logic. This example returns only open items with values of at least 1000.

Common mistakes and notes

The include array must align with the data

If array has 19 rows, the include argument must evaluate to 19 TRUE/FALSE results. Misaligned dimensions cause errors.

FILTER spills into adjacent cells

If cells below or beside the formula are not empty, Excel may return #SPILL!. Clear the spill area or move the formula.

Use * for AND and + for OR

When you combine conditions inside FILTER, multiplication acts like AND and addition acts like OR. That pattern is common in dynamic array formulas.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use FILTER.

Official documentation