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
How many Monitor units were sold in the West? Answer in E2.
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.
Sales by rep
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
Learning step by step? SUMIFS is covered in Lesson 14: SUMIFS Function of the free course.