Syntax
| Parameter | Description |
|---|---|
| array | Parameter of the FILTER function. |
| include | Parameter of the FILTER function. |
| [if_empty] | (Optional.) Parameter of the FILTER function. |
Examples
Filter by threshold
=FILTER(A2:C20, B2:B20>=1000)
Multiple criteria
=FILTER(A2:D50, (B2:B50="East")*(C2:C50>500))
With fallback
=FILTER(A2:B10, A2:A10="Platinum", "No results")
Common Errors
Occurs when no rows match the criteria and no if_empty fallback is provided. Always provide the third argument to handle this gracefully.
Occurs when the include array has a different number of rows than the source array.
Tips
Multiply conditions for AND: (cond1)*(cond2). Add conditions for OR: (cond1)+(cond2). Wrap OR conditions in parentheses and use -- or >0 if needed.
The third argument prevents #CALC! errors when nothing matches. Use "No results" or an empty string "" as a fallback.
=SORT(FILTER(A:C, B:B>100), 2, -1) filters then sorts by column 2 descending. Nesting dynamic array functions is a powerful pattern.
Try FILTER in Viztab
Import your data and use FILTER with 370+ other formulas. No signup required.
Open Viztab