Lookup and referenceExcel 2021

FILTER

Keep the rows or columns for which a matching test is true.

Syntax

=FILTER(array, include, [if_empty])

Worked example

Keep items whose stock count is at least seven.

=FILTER({"Tea";"Rice";"Lime"},{4;10;7}>=7)

Result Rice; Lime (two rows)

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor