Skip to main content
← All functions

FILTER function

The FILTER function allows you to filter a range of data based on criteria you define.

Syntax

FILTER(array, include, [if_empty])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
arrayYesThe range or array to filter.A5:D20
includeYesAn array of Boolean values ​​where TRUE indicates that a row or column is to be retained.(C5:C20="Apple")*(A5:A20="East")
if_emptyNoIf no items are reserved, return.""

Try FILTER

Return only the amounts from one region

=FILTER(A2:A6,C2:C6="East")

Return only the amounts from one region. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

FILTER · top-level call

=FILTER(A2:A6,C2:C6="East")

1 / 2 · array

The range or array to filter.

FILTER reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.