Excel SUMIF function

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

Syntax

English Excel

=SUMIF(range, criteria, [sum_range])

Spanish Excel (Mexico)

=SUMAR.SI(rango, criterio, [rango_suma])

Spanish Excel (Spain, Latin America)

=SUMAR.SI(rango; criterio; [rango_suma])

ArgumentWhat it is
rangeThe cells checked against the condition.
criteriaThe condition.
sum_rangeoptionalThe cells to add; if omitted, the range itself is added.

Example

SUMIF(range, criteria, sum_range) adds only the rows that meet the criterion. The criterion can be a cell, so one formula works for several categories.

=SUMIF($A$2:$A$10,D2,$B$2:$B$10)

Common mistake

If you copy the formula, anchor the ranges with $ so they do not shift.

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, criteria, sum_range) adds only the rows that meet the criterion. The criterion can be a cell, so one formula works for several categories.

Example=SUMIF($A$2:$A$10,D2,$B$2:$B$10)SUMAR.SI = SUMIF

In E2, add up the sales for the region in D2. It will be copied to E3 and E4 for the other regions.

E2
ABCDEF
1RegionSaleRegionTotal
2South800North
3Central2,300South
4North1,200Central
5South640
6North450
7Central900
8North1,750
9South310
10Central1,180
11

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 Excel it is SUMAR.SI. The formula =SUMIF($A$2:$A$10,D2,$B$2:$B$10) is written =SUMAR.SI($A$2:$A$10;D2;$B$2:$B$10) (or with commas in Mexico).
Why does SUMIF use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common SUMIF mistake?
If you copy the formula, anchor the ranges with $ so they do not shift.