Google Sheets SUMIFS function
Adds the values that meet several conditions at once.
Syntax
=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
sum_range | The cells to add up. Note it comes first, unlike SUMIF. |
|---|---|
criteria_range1 | The cells to test against criterion1. |
criterion1 | The first condition. |
criteria_range2, criterion2, ... | Optional. More range/condition pairs. All must match. |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Q1 sales
Result: 630
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Rep | Region | Product | Units | Revenue |
| 2 | Ana | East | Pens | 120 | 240 |
| 3 | Ben | West | Paper | 80 | 400 |
| 4 | Cara | East | Paper | 45 | 225 |
| 5 | Dev | North | Pens | 200 | 400 |
| 6 | Ana | East | Ink | 30 | 450 |
| 7 | Ben | West | Pens | 95 | 190 |
| 8 | Cara | East | Ink | 12 | 180 |
| 9 | Dev | North | Paper | 60 | 300 |
Examples
These use the sample sheet above.
→ 630
Revenue from ink sold in the East.
→ 175
Ben's units, counting only sales over 50.
Tips & common mistakes
- The sum range comes first in SUMIFS but last in SUMIF, which is the most common mix-up.
- Every condition must be true for a row to count. For "either/or", add two SUMIFS together.