Maintenance Notification: We are upgrading our servers today so you may experience intermediate outages. Thank you for your patience.
Perform logical operations in formulas
MO-211

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.

Sales
ABC
1RepRegionAmount
2AnaEast1200
3BenWest800
4CaraEast450
5DevNorth950
6EliWest300
7FayEast700
Totals (the video fills F2:F4)
EF
1RegionTotal
2West1100
3East2350
4North950
One condition on text
=SUMIF(B2:B7, "East", C2:C7)
Returns 2350

Ana, Cara and Fay are East: 1200 + 450 + 700.

A condition on the summed column itself
=SUMIF(C2:C7, ">=800")
Returns 2950

With no third argument, SUMIF totals the range it tested: 1200 + 800 + 950.

Everything except one value
=SUMIF(B2:B7, "<>East", C2:C7)
Returns 2050

<> means not equal to: the West and North amounts, 800 + 950 + 300.

Filled down a column
=SUMIF($B$2:$B$7, E2, $C$2:$C$7)
Returns 1100, 2350, 950 in F2:F4

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

The ranges in SUMIFS order

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.

Filling down without locking

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.

A comparison without quotes

=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.

A total range of a different size

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.com

Try 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.