FILTER
Returns only the rows that pass a test.
How it’s written
FILTER(range, test, if_empty)Example
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Sales |
| 2 | North | Amara | 400 |
| 3 | South | Ben | 250 |
| 4 | North | Chloe | 150 |
| 5 | West | Dev | 700 |
=SUM(FILTER(C2:C5,A2:A5="North"))Result: 550
Filters to the North sales, then adds them.
Try it yourself
Open a live sheet with this example, and type the formula yourself. It takes a moment to load.
Worth knowing
Add a third part, so an empty result doesn’t show an error.
Practice it properly
The FILTER function gives you real tasks, with your formulas tested on data you haven’t seen.