Conditional function

Google Sheets SUMIFS function

Adds the values that meet several conditions at once.

Syntax

=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
sum_rangeThe cells to add up. Note it comes first, unlike SUMIF.
criteria_range1The cells to test against criterion1.
criterion1The 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
fx
Result: 630
ABCDE
1RepRegionProductUnitsRevenue
2AnaEastPens120240
3BenWestPaper80400
4CaraEastPaper45225
5DevNorthPens200400
6AnaEastInk30450
7BenWestPens95190
8CaraEastInk12180
9DevNorthPaper60300

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

Related functions