ReferenceFunctionsLookup Functions
FILTER
Filters rows from an array using a Boolean include mask.
Summary
FILTER returns only rows where the include condition evaluates to true.
Remarks
includemust have the same row count asarray, or a single row used as broadcast.- A row is kept if any include cell for that row is truthy.
- If no rows match,
if_emptyis returned when supplied; otherwise#CALC!. - Dimension mismatches return
#VALUE!. - Results spill as dynamic arrays.
Examples
Filter active records
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
[["Ana"],["Cy"]]
Return fallback when no rows match
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
No matches
Related functions
FAQ
What happens when include has no TRUE rows?
FILTER returns if_empty when provided; otherwise it returns #CALC! to signal an empty result set.
How strict is include shape matching?
include must match array row count or be a single broadcast row; incompatible dimensions return #VALUE!.
Runtime metadata
Category
Lookup
Signature
FILTER(arg1: Range (Range), arg2: Range (Range), arg3?…: Any)Arity
min 2, max variadic
Arguments
arg1by-refRange · Range
arg2by-refRange · Range
arg3optionalAny · Scalar
Caps
PURE
Source