What you will learn
- Add up only the rows that match
- Fill a whole table with one formula
How it works
SUMIF(range, criteria, sum_range) has three parts:
- where to look (the Region column)
- what to look for (East)
- what to add up (the Amount column)
Point to the region name in column F. Lock the other ranges with $. Then one formula works for every row.
Formulas at a glance
=SUMIF($B$2:$B$9, F2, $C$2:$C$9) | check B, add C |
=AVERAGEIF(range, criteria, avg_range) | The pattern to follow |
Example
Write the formula to add up the amounts for the East region (F2).
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Order | Region | Amount | Status | Region | Total | Average | |
| 2 | 1001 | West | $820.00 | Shipped | East | |||
| 3 | 1002 | East | $240.00 | Pending | West | |||
| 4 | 1003 | North | $510.00 | Shipped | North | |||
| 5 | 1004 | West | $130.00 | Shipped | South | |||
| 6 | 1005 | South | $975.00 | Pending | ||||
| 7 | 1006 | East | $660.00 | Shipped | Shipped total | |||
| 8 | 1007 | West | $390.00 | Pending | Shipped average |
Click G2 and type =SUMIF($B$2:$B$9,F2,$C$2:$C$9), then press Enter.
The answer is $1,205.00.
When to use it
- Total sales for one region
- Total spending in one category
- Average score for one class
Common mistakes
- Mixing up the three partsWhere to look, what to look for, what to add up.
- Ranges that don’t line upBoth ranges must start and end on the same rows.
- Copying down without $Lock the ranges with $ so they stay put.
Quick check
In SUMIF, what does the third part (sum_range) hold?
- The cells to check
- The numbers to add up
- The answer
- What to look for
Show the answer
B. The numbers to add up It's the column with the numbers.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.