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 referenceHow To Use Excel FILTER Function With Multiple Criteria & Return Only the Columns You Need
Practice FILTER
List the items with at least seven units in stock.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Show example formula
=FILTER(A2:A4,B2:B4>=7) Lesson quiz
Answer three questions to see your level in this lesson.
