FILTER Function
Filter an array by a condition. include is an array of TRUE and FALSE values with the same height or width as array, and FILTER spills the rows or columns where it is TRUE. When nothing matches, FILTER returns if_empty, or #CALC! when it is omitted; an include array of another size returns #VALUE!.
Syntax
FILTER(array, include, if_empty)
Category: Lookup. Minimum arguments: 2. Maximum arguments: 3.
Available for supported offline calculation.
Examples
=FILTER({1;2;3},{FALSE;TRUE;TRUE})
The formula returns the array {2;3}, the rows whose include value is TRUE.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.