FILTER in Apple Numbers
Short answer: FILTER keeps only the rows for which the test is TRUE. Syntax:
FILTER(array, test-array, if-empty)Explanation
FILTER keeps only the rows for which the test is TRUE. With if-empty you decide what you get when nothing is left.
Syntax
FILTER(array, test-array, if-empty)Example
Filter the prices (B2:B5) of products with a quantity greater than 2 and add them up.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =SUM(FILTER(B2:B5,C2:C5>2))
Result: 18
Frequently asked questions
What does FILTER do in Apple Numbers?
FILTER keeps only the rows for which the test is TRUE. With if-empty you decide what you get when nothing is left.
What is the syntax of FILTER?
The syntax is FILTER(array, test-array, if-empty).
More in this category
Read more
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising