FILTER: total only the big deals

Lesson 41 of 54

FILTER returns only the rows of a range that meet a condition, and the result updates when the data changes. It works in Google Sheets and Excel 365.

In cell D2, write a formula that adds up only the deals in column B that are greater than 5000, using SUM and FILTER.

D2
ABCD
1DealAmountBig deals total
2Acme7,200
3Globex3,100
4Initech9,800
5Umbrella4,500
6Hooli6,100

Type in the formula bar above and press Enter to check.

Skip

How FILTER works

Syntax

=FILTER(range, condition1, [condition2], ...)
range
The rows and columns to return.
condition1
A test on a column of the same height, like C2:C500="Open".
condition2...
In Google Sheets, extra conditions must all be true. In Excel, combine them: (C2:C500="Open")*(D2:D500>100).

Example

Tasks are in A2:D500 with the owner in column B. You want Ana's open tasks on a separate sheet.

=FILTER(A2:D500, B2:B500="Ana", D2:D500="Open")

A live list that grows and shrinks as tasks change. In Excel, write the conditions as (B2:B500="Ana")*(D2:D500="Open").

Common mistakes

  • A range and condition of different heights, which gives an error.
  • Cells below the formula already in use, which blocks the result (#SPILL! in Excel, #REF! in Sheets).
  • An error when nothing matches. Excel takes a third argument like "None"; in Sheets wrap it in IFERROR.

Questions people ask

How do I filter with OR?

Add the conditions instead of listing them: =FILTER(A2:D500, (B2:B500="Ana")+(B2:B500="Luis")).

Practice it above: type the formula in the formula bar and press Enter to check.