Perform logical operations by using the SUMIF() function
=SUMIF($B$2:$B$7, E2, $C$2:$C$7)Look down the regions for the one in E2 and total the amounts on those rows. SUMIF puts the range to total last; lock both ranges before you fill it down.
What the MO-211 task asks
A SUMIF task asks for a total with one condition: “total the Sessions delivered at Central”, or “total the Rate values for each dock letter shown in J4:J7 … lock the two data ranges so the formula fills down”. One condition and a total is SUMIF; two or more is SUMIFS.
The condition can be a value in a cell (each dock letter in J4:J7), typed text in quotes, or a comparison in quotes such as ">=800". When the task gives one row of criteria per output cell, it wants one formula filled down, with the data ranges locked.
Our grader checks the value in every cell of the target range. It reads the values, not the function, so any formula that produces them earns the points — but one wrong cell fails the whole range.
Worked examples
Type these into a blank sheet to follow along. Every result below is what Excel showed.
| A | B | C | |
|---|---|---|---|
| 1 | Rep | Region | Amount |
| 2 | Ana | East | 1200 |
| 3 | Ben | West | 800 |
| 4 | Cara | East | 450 |
| 5 | Dev | North | 950 |
| 6 | Eli | West | 300 |
| 7 | Fay | East | 700 |
| E | F | |
|---|---|---|
| 1 | Region | Total |
| 2 | West | 1100 |
| 3 | East | 2350 |
| 4 | North | 950 |
=SUMIF(B2:B7, "East", C2:C7)Ana, Cara and Fay are East: 1200 + 450 + 700.
=SUMIF(C2:C7, ">=800")With no third argument, SUMIF totals the range it tested: 1200 + 800 + 950.
=SUMIF(B2:B7, "<>East", C2:C7)<> means not equal to: the West and North amounts, 800 + 950 + 300.
=SUMIF($B$2:$B$7, E2, $C$2:$C$7)Each row takes its region from column E, and the locked ranges keep every row looking at all six sales. This is what the video below builds.
Watch it done in Excel
The last example above, recorded in real Excel on the same grid.
Exam traps
SUMIF takes the range to test first and the range to total last; SUMIFS is the other way round. =SUMIF(C2:C7, "East", B2:B7) tests the amounts for the word East and returns 0.
Unlocked, =SUMIF(B2:B7, E2, C2:C7) filled to F3 becomes =SUMIF(B3:B8, E3, C3:C8). Ana's row has slid out, so East shows 1150 instead of 2350.
=SUMIF(C2:C7, >=800) is not a formula Excel will accept. The operator and the number go inside quotes together: ">=800". To compare with a cell, join them: ">="&E5.
SUMIF does not complain: =SUMIF(B2:B7, "East", C2:C3) still returns 2350, because Excel quietly stretches C2:C3 to match B2:B7. It is right here by luck; select both ranges the same size.
FAQ
Is the condition case-sensitive?
No. =SUMIF(B2:B7, "east", C2:C7) returns 2350, the same as "East".
Can I use wildcards?
Yes, in text conditions. =SUMIF(A2:A7, "*a", C2:C7) totals the reps whose names end in a — Ana and Cara — for 1650.
SUMIF or SUMIFS?
SUMIFS does one condition too, so you can use it for both; just remember its total range comes first. The outline names both, so expect either.
New to this function?
This page covers what the exam asks. For the full how-to — every argument, more examples and a practice workbook — read our guide on dfwexcel.com.
The SUMIF function, explained — dfwexcel.comTry it under exam conditions
Take a full, timed MO-211 practice exam, upload the workbook you built, and get a score out of 1000 with a per-task breakdown of where the points went. Your first one is free.
No credit card needed.
