SheetsLessons
Conditional function

SUMIFS function in Google Sheets

SUMIFS adds up values from rows that meet every one of several conditions, for example revenue from Monitors sold in the West.

Syntax

=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
sum_range
The cells to add up. This comes first, unlike SUMIF.
criteria_range1
The first range to test.
criterion1
The condition for that range.
criteria_range2, criterion2, ...
Optional. More range/condition pairs.

Practice SUMIFS

Task 1 of 2

How many Monitor units were sold in the West? Answer in E2.

E2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

SUMIFS examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCDE
1RepRegionProductUnitsRevenue
2AvaWestMonitor12$2,400.00
3LiamEastKeyboard30$1,500.00
4MayaWestMouse45$900.00
5NoahNorthMonitor8$1,600.00
6ZaraEastMonitor15$3,000.00
7OmarWestKeyboard22$1,100.00
Sales by rep
FormulaResultWhat it shows
=SUMIFS(E2:E7, B2:B7, "West", C2:C7, "Monitor")$2,400.00West monitors only.
=SUMIFS(D2:D7, B2:B7, "East", E2:E7, ">2000")15Units from big East deals.
=SUMIFS(E2:E7, D2:D7, ">=10", D2:D7, "<=30")$8,000.00Revenue where units are between 10 and 30.

Tips and common mistakes

  • The sum range comes first in SUMIFS but last in SUMIF. Mixing them up is the #1 SUMIFS mistake.
  • SUMIFS works perfectly with just one condition, so many people use it everywhere for consistency.

Related functions