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

=IF(AND(B2="Domestic", NOT(C2="Yes")), "Yes", "No")

Exempt only when the class is Domestic and the account is not an estimate. NOT turns the estimate test round.

What the MO-211 task asks

NOT appears where a task says “not”: “Exempt shows Yes only when the Class is Domestic and the account is not an estimate; otherwise No.” One test is reversed and combined with another, so NOT sits inside AND, inside IF.

NOT takes exactly one test and flips it: TRUE becomes FALSE and FALSE becomes TRUE. For a single cell, <> does the same job; NOT earns its place when it reverses a whole AND or OR.

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.

Accounts (the video fills D2:D6)
ABCD
1AccountClassEstimateExempt
2A-1DomesticNoYes
3A-2BusinessNoNo
4A-3DomesticYesNo
5A-4DomesticNoYes
6A-5BusinessYesNo
Reversing one test
=NOT(C3="Yes")
Returns TRUE

A-2 is not an estimate, so C3="Yes" is FALSE and NOT makes it TRUE.

Inside IF
=IF(NOT(B3="Domestic"), "Check", "OK")
Returns Check

A-2 is a Business account.

Neither one nor the other
=NOT(OR(B6="Domestic", C6="No"))
Returns TRUE

A-5 is neither Domestic nor a non-estimate: NOT reverses the whole OR.

With AND, for one row
=IF(AND(B4="Domestic", NOT(C4="Yes")), "Yes", "No")
Returns No

A-3 is Domestic but is an estimate, so it is not exempt.

Filled down a column
=IF(AND(B2="Domestic", NOT(C2="Yes")), "Yes", "No")
Returns Yes, No, No, Yes, No in D2:D6

Only A-1 and A-4 are Domestic and not estimates. 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

Giving NOT two tests

NOT takes a single argument. =NOT(B2="Domestic", C2="Yes") is not a formula Excel will accept; combine the tests with AND or OR first, then reverse that.

NOT around AND is not AND of NOTs

For A-1, =NOT(AND(B2="Domestic", C2="Yes")) returns TRUE, but =AND(NOT(B2="Domestic"), NOT(C2="Yes")) returns FALSE. “Not both” and “neither” are different tests.

Reversing the wrong test

=IF(AND(NOT(B2="Domestic"), C2="Yes"), "Yes", "No") reverses the class instead of the estimate and returns No for A-1, whose answer is Yes.

FAQ

NOT or <>?

The same for one comparison: =AND(B2="Domestic", C2<>"Yes") returns TRUE for A-1, like the NOT version. NOT is the one that can reverse an AND or OR as a whole.

What does NOT do with a number?

0 counts as FALSE and any other number as TRUE: =NOT(0) returns TRUE and =NOT(5) returns FALSE.

What about an empty cell?

An empty cell counts as FALSE, so =NOT(E2) returns TRUE while E2 is empty.

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