FILTER function

Returns a filtered version of the source range, returning only rows or columns that meet the specified conditions.


Make a copy

Filters a range using different conditions.

Sample usage

FILTER(A2:B26, A2:A26 > 5, D2:D26 < 10)




FILTER(range, condition1, [condition2, ...])

  • range – The data to be filtered.

  • condition1 – A column or row containing true or false values corresponding to the first column or row of range, or an array formula evaluating to true or false.

  • condition2 …[ OPTIONAL ] – Additional rows or columns containing boolean values TRUE or FALSE indicating whether the corresponding row or column in range should pass through FILTER. Can also contain array formula expressions, which evaluate to such rows or columns. All conditions must be of the same type (row or column). Mixing row conditions and column conditions is not permitted.

    • condition arguments must have exactly the same length as range.


  • FILTER can only be used to filter rows or columns at one time. In order to filter both rows and columns, use the return value of one FILTER function as range in another.

  • If FILTER finds no values that satisfy the provided conditions, #N/A will be returned.

See also

UNIQUE: Returns unique rows in the provided source range, discarding duplicates. Rows are returned in the order in which they first appear in the source range.

Was this helpful?
How can we improve it?
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Clear search
Close search
Google apps
Main menu
Search Help Centre