Google Sheets SUMIF function

Adds only the rows that meet a condition. In Spanish Sheets it is called SUMAR.SI.

Syntax

English Sheets

=SUMIF(range, criterion, [sum_range])

Spanish Sheets (Mexico locale)

=SUMAR.SI(intervalo, criterio, [intervalo_suma])

Spanish Sheets (Spain, Latin America)

=SUMAR.SI(intervalo; criterio; [intervalo_suma])

ArgumentWhat it is
rangeWhere the condition is checked.
criterionThe condition.
sum_rangeoptionalWhat gets added; if omitted, the same range is added.

Example

SUMIF(range, criterion, sum_range) adds only the rows that meet the criterion: it checks the first range and adds the values in the third.

=SUMIF(B2:B11,"Guadalajara",D2:D11)

Common mistake

The order differs from SUMIFS: here the sum range comes last.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice SUMIF

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

SUMIF

SUMIF(range, criterion, sum_range) adds only the rows that meet the criterion: it checks the first range and adds the values in the third.

Example=SUMIF(B2:B11,"CDMX",D2:D11)SUMAR.SI = SUMIF
Step 1/2

In G2, add up the amount of the Guadalajara orders.

G2
ABCDEFGH
1OrderCitySellerAmount
2P-101MonterreyCarmen1200Guadalajara sales
3P-102GuadalajaraJorge850Carmen’s sales
4P-103CDMXCarmen2300
5P-104MonterreyLucía640
6P-105CDMXJorge1750
7P-106GuadalajaraLucía980
8P-107MonterreyJorge1500
9P-108CDMXLucía410
10P-109GuadalajaraCarmen1320
11P-110MonterreyCarmen760
12

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is SUMIF called in Spanish?
In Spanish Google Sheets it is SUMAR.SI. The formula =SUMIF(B2:B11,"Guadalajara",D2:D11) is written =SUMAR.SI(B2:B11;"Guadalajara";D2:D11) (or with commas under a Mexico locale).
Why does SUMIF use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common SUMIF mistake?
The order differs from SUMIFS: here the sum range comes last.