SUMIF in Google Sheets

Adds the cells that meet one condition. The condition can be checked in the same range or in another column.

In Google Sheets

SUMIF takes the same arguments in Google Sheets, and criteria such as ">100" and "N*" work the same way.

Syntax

SUMIF(range, criteria, [sum_range])
range
The cells the condition is checked against.
criteria
The condition, such as "North", ">300" or a cell like E1.
sum_range (optional)
The cells to add. If left out, range itself is added.

Examples

E1=SUMIF(A2:A6,"North",C2:C6)
ABCDE
1RegionProductSales1170
2NorthShoes500
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180

In plain words: Add up the sales in C2:C6 on the rows where the region in A2:A6 is North.

E1=SUMIF(C2:C6,">300")
ABCDE
1RegionProductSales920
2NorthShoes500
3SouthShoes300
4NorthBags250
5NorthShoes420
6SouthBags180

Practice SUMIF

Related functions