SheetRocks
Documentation/Formulas/FILTER

FILTER

Returns a filtered array containing only rows that match the criteria

Syntax

FILTER(array, criteria)

Arguments

Argument Description Required
array The array to filter Required
criteria The boolean criteria to filter rows by Required

Examples

Filter scores above 90

=FILTER(A1:A6, CELL > 90)
Result ⇒ Array: [[93], [96], [91]]
A
1 89
2 93
3 96
4 85
5 91
6 88

Filter names starting with A

=FILTER(A1:A4, LEFT(COL[1], 1) = "A")
Result ⇒ Array: [["Alice"], ["Andrew"]]
A
1 Alice
2 Bob
3 Andrew
4 Carol

Filter rows with emails ending in luxo.com

=FILTER(A1:A6, ENDSWITH(COL[1], "luxo.com"))
Result ⇒ Array: [["[email protected]", "new lead"], ["[email protected]", "warm lead"], ["[email protected]", "new lead"]]
A B
1 [email protected] new lead
2 [email protected] warm lead
3 [email protected] new lead
4 [email protected] new lead
5 [email protected] cold lead
6 [email protected] new lead

Related Functions

Other Data functions:


← Back to Formula Reference