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
| A | B | C | |
|---|---|---|---|
| 1 | Region | Status | Amount |
| 2 | North | Paid | 120 |
| 3 | South | Open | 80 |
| 4 | North | Open | 200 |
| 5 | East | Paid | 60 |
| 6 | North | Paid | 90 |
| 7 | South | Paid | 150 |
| Formula | Result | What it does |
|---|---|---|
=SUMIF(A2:A7,"North",C2:C7) | 410 | Adds the amounts of all North rows: 120 + 200 + 90. |
=SUMIFS(C2:C7,A2:A7,"North",B2:B7,"Paid") | 210 | Adds only the rows that are North and also Paid. |
=SUMIF(C2:C7,">100") | 470 | Without 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.

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 storyMore lessons with SUMIF and SUMIFS
- Weekend e-bike revenue · Module 6 · SUMIFS
- All mountain models · Module 6 · *, ?, <> in criteria