SUMIF and SUMIFS in Excel: examples and practice

SUMIF adds the values in a range that meet one condition, and SUMIFS adds with more conditions. For example, =SUMIF(A2:A7,"North",C2:C7) adds the amounts of the North region.

Syntax

=SUMIF(range, criteria, [sum_range])
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
range (SUMIF)
The cells to test, for example the Region column.
criteria
The condition: "North", ">100", "N*" (starts with N) or a cell.
sum_range
The cells to add. In SUMIF it comes last, in SUMIFS it comes first.
criteria_range2, criteria2, ...
Optional in SUMIFS. More pairs of range and condition. All must be met.

Examples

Example data

ABC
1RegionStatusAmount
2NorthPaid120
3SouthOpen80
4NorthOpen200
5EastPaid60
6NorthPaid90
7SouthPaid150
FormulaResultWhat it does
=SUMIF(A2:A7,"North",C2:C7)410Adds the amounts of all North rows: 120 + 200 + 90.
=SUMIFS(C2:C7,A2:A7,"North",B2:B7,"Paid")210Adds only the rows that are North and also Paid.
=SUMIF(C2:C7,">100")470Without sum_range, SUMIF adds the tested cells: all amounts above 100.

Try it

In cell E2, add the amounts of the South region.

Show the solution

=SUMIF(A2:A7,"South",C2:C7) → 230

Common mistakes

Arguments in the SUMIF order

SUMIFS starts with sum_range. =SUMIFS(A2:A7,"North",C2:C7) is wrong. Write =SUMIFS(C2:C7,A2:A7,"North").

Ranges of different sizes

In SUMIFS, all ranges need the same rows. C2:C7 and A2:A6 give #VALUE!.

Extra spaces in the data

"North " with a space does not match "North". The total is too small. Clean the data with TRIM.

Fatima Haddad, owns Ridgeline Bike Rental

Practice this in a story

A short lesson from a real job. We show you each step, then you do it yourself.

Hours per bike type · Module 6 · Conditional Sums and Counts · 5 min

Saturday was busy at Ridgeline. Fatima wants to know which bike type works the hardest and which type earns the most. Counting is not enough now. You add up the hours and the money with SUMIF.

Practice this in a story

More lessons with SUMIF and SUMIFS

Related functions