Function reference · Array & filter

FILTER

Returns only the rows of a range that meet one or more conditions.

FILTER(range, condition1, [condition2, ...])

FILTER returns a live subset of your data — every row where the conditions are true, spilling down the sheet automatically. Unlike the Filter view in the toolbar, it is a formula, so the result updates itself and can feed other formulas.

Arguments

ArgumentRequiredWhat it does
range Yes The rows to return.
condition1 Yes A range of TRUE/FALSE values the same height as range.
condition2 Optional Further conditions. All must be true — they combine with AND.

Worked example

RegionRepSales
WestAna1200
EastBen900
WestCara1500
NorthDan600
EastEve1100
=FILTER(A2:C6, A2:A6 = "West")

Returns West Ana 1200, West Cara 1500.

Every row whose region is West, returned in full.

Gotchas

Related functions