FILTER

Returns only the rows that pass a test.

How it’s written

FILTER(range, test, if_empty)

Example

ABC
1RegionRepSales
2NorthAmara400
3SouthBen250
4NorthChloe150
5WestDev700
=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.

Start the lesson

Related functions