Skip to content
Dropfile

FILTER Function

Returns a filtered array of data based on criteria you define. A dynamic array function that automatically spills results into multiple cells.

ExcelGoogle Sheets

Syntax

FILTER(array, include, [if_empty])

Parameters

ParameterDescription
arrayThe range or array to filter.
includeA Boolean array the same height/width as the array. TRUE values are included.
if_empty(optional)Value to return if no results match.

Examples

Filter sales over $1,000

=FILTER(A2:C100, C2:C100>1000, "No results")

Result: Returns all rows where column C exceeds 1000

Filter by multiple criteria (AND logic)

=FILTER(A2:D20, (B2:B20="East")*(C2:C20>500))

Result: Returns rows where region is East AND amount > 500

Filter by multiple criteria (OR logic)

=FILTER(A2:D20, (B2:B20="East")+(B2:B20="West"))

Result: Returns rows where region is East OR West

Tips & Best Practices

Related Formulas

Need a different formula?

Describe what you need in plain English and our AI will generate the formula for you.

Try Formula Generator