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 SUMIFS() function

=SUMIFS($C$2:$C$7, $A$2:$A$7, E2, $B$2:$B$7, F2)

Total the revenue on the rows where the region matches E2 and the channel matches F2. The range to total comes first, then each range and its condition in pairs.

What the MO-211 task asks

A SUMIFS task asks for a total with two or more conditions, and in our MO-211 practice exams it usually says so: “total the Takings for journeys that are on the Valley route AND dated on or after 1-Jun-2026. Both conditions must hold.” “Both conditions must hold” is the signal.

Each condition is a range and a test, in pairs after the range to total. A date or number condition goes in quotes with its operator — ">="&E5 to compare with a cell. SUMIFS only does AND: every condition has to be true on the same row.

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.

Orders
ABC
1RegionChannelRevenue
2EastOnline500
3EastStore300
4WestOnline450
5EastOnline250
6WestStore600
7NorthOnline350
Totals (the video fills G2:G4)
EFG
1RegionChannelRevenue
2WestStore600
3EastOnline750
4NorthStore0
Two conditions
=SUMIFS(C2:C7, A2:A7, "East", B2:B7, "Online")
Returns 750

Rows 2 and 5 are both East and Online: 500 + 250.

A number condition
=SUMIFS(C2:C7, A2:A7, "East", C2:C7, ">=300")
Returns 800

The East rows of at least 300: 500 and 300. The total range can also be a condition range.

Not equal to
=SUMIFS(C2:C7, B2:B7, "Store", A2:A7, "<>North")
Returns 900

Store sales outside the North region: 300 + 600.

Filled down a column
=SUMIFS($C$2:$C$7, $A$2:$A$7, E2, $B$2:$B$7, F2)
Returns 600, 750, 0 in G2:G4

Each row reads its region and channel from columns E and F. North has no Store sales, so its total is 0, not an error. 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 total range in SUMIF's place

SUMIFS takes the range to total first. Write it SUMIF's way — =SUMIFS(A2:A7, "East", C2:C7) — and the arguments no longer pair up, so Excel will not accept the formula.

Ranges of different sizes

Every range must be the same size. =SUMIFS(C2:C7, A2:A6, "East") returns #VALUE!, where SUMIF would have quietly carried on.

Filling down without locking

Unlocked, the formula in G2 filled to G3 tests rows 3 to 8. East Online loses row 2 and totals 250 instead of 750.

Expecting an OR

Every condition must hold on the same row. =SUMIFS(C2:C7, A2:A7, "East", A2:A7, "West") returns 0, because no row is in both. For East or West, add two SUMIFS: =SUMIFS(C2:C7, A2:A7, "East")+SUMIFS(C2:C7, A2:A7, "West") returns 2100.

FAQ

Can SUMIFS take just one condition?

Yes. =SUMIFS(C2:C7, A2:A7, "West") returns 1050, the same as the SUMIF.

How do I write a date condition?

Join the operator to a cell that holds the date: ">="&H2. The operator stays in quotes; the cell reference stays outside them.

What does SUMIFS return when nothing matches?

0, as North Store does above. It never returns an error for no matches.

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