Flipping Logic With NOT
Reverse a TRUE or FALSE result with the NOT function.
Flipping Logic With NOT is a free Excel Formulas Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Turning Logic Upside Down
Sometimes it is easier to describe what you do not want than what you do. You might say show everyone who is not from the East region, or flag any order that is not paid.
The NOT function reverses a logical value. If something is TRUE, NOT makes it FALSE. If it is FALSE, NOT makes it TRUE.
It is the simplest logical function, taking just one condition, but it unlocks cleaner ways to express many rules.
The Shape of NOT
Unlike AND and OR, the NOT function takes exactly one argument:
- logical a single condition or value that evaluates to
TRUEorFALSE
It returns the opposite. There is no second argument and no comma list. Whatever you put inside, NOT simply flips it.
=NOT(logical)The Truth Flip
Here is everything NOT does, in two lines:
=NOT(TRUE)returnsFALSE=NOT(FALSE)returnsTRUE
That is the whole behavior. It is like the word not in English: not true means false, and not false means true. Keep this flip in mind and the rest of the lesson follows naturally.
=NOT(TRUE)Flipping a Comparison
The most common use is to reverse a comparison. Suppose A2 holds a region name. You want TRUE for any region that is not East.
The formula below takes the test A2="East" and flips its result. If the region is East, the inner test is true, so NOT returns FALSE. For every other region, it returns TRUE.
=NOT(A2="East")NOT or the Not-Equal Operator?
Spreadsheets already have a not-equal operator written as <>. So =NOT(A2="East") gives the same result as =A2<>"East".
For a single comparison, the <> operator is shorter and often clearer. The real value of NOT appears when you need to flip something more complex, like the result of an entire AND or OR, which you will see next.
=A2<>"East"Flipping an AND or OR
This is where NOT shines. Imagine a product is in stock only when quantity in A2 is above 0 and the status in B2 is Active. You want to flag everything that is not in stock.
Wrap the whole AND in NOT. If the item is in stock, the inner AND is true, so NOT returns FALSE. Anything else returns TRUE.
=NOT(AND(A2>0, B2="Active"))A Worked Example: Excluding a Group
Say you want to give a bonus to all employees except those in the Intern role. Using NOT reads almost like the requirement itself.
The formula checks if the role in C2 is not Intern. When that is true, it shows Eligible; otherwise it shows Not Eligible. Describing the exception directly often makes the formula easier to read than listing every included role.
=IF(NOT(C2="Intern"), "Eligible", "Not Eligible")Checking for Non-Blank Cells
NOT pairs nicely with functions that return TRUE or FALSE, such as ISBLANK. The ISBLANK function is TRUE when a cell is empty.
To do something only when a cell has a value, flip it with NOT. The formula below shows Ready when A2 is not blank, and Missing when it is empty.
=IF(NOT(ISBLANK(A2)), "Ready", "Missing")Double Negatives Cancel Out
Just like in everyday language, two NOT functions cancel each other. =NOT(NOT(TRUE)) returns TRUE again, because you flipped twice.
While you will rarely write a deliberate double negative, recognizing this helps you simplify tangled formulas. If you spot NOT(NOT(...)), you can usually delete both and keep the inner condition.
=NOT(NOT(A2>10))When to Reach for NOT
Use NOT when your rule is naturally phrased as an exclusion or a reversal:
- Everyone who is not a manager
- Any order that is not shipped
- Flip the outcome of a whole
ANDorOR
For a single simple comparison, the <> operator may be tidier. But for reversing complex logic, NOT keeps your intent crystal clear.
Why NOT Matters
The NOT function is small but powerful: it flips any logical result to its opposite. That lets you describe exceptions directly instead of awkwardly listing everything you want to keep.
Remember the essentials:
- It takes exactly one argument
- It turns
TRUEintoFALSEand vice versa - It is most useful wrapping an
AND,OR, or function likeISBLANK
Now try a quick check.
Quick Check
Test your understanding of how the NOT function behaves.
Recap: Flipping Logic With NOT
You learned that NOT reverses a logical value, turning TRUE into FALSE and FALSE into TRUE.
- Syntax:
=NOT(test)with exactly one condition - For a single comparison,
<>is often shorter:=A2<>"East" - Best used to flip an entire
ANDorOR:=NOT(AND(...)) - Pairs well with
ISBLANKand other true/false functions
Next up: IFS, a cleaner way to handle many branches at once.
=NOT(AND(A2>0, B2="Active"))Frequently asked questions
Is the “Flipping Logic With NOT” lesson free?
Yes — the full text of “Flipping Logic With NOT” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Flipping Logic With NOT”?
Reverse a TRUE or FALSE result with the NOT function. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Flipping Logic With NOT” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Requiring Everything With AND
- Accepting Any Match With OR
- Flipping Logic With NOT
- Cleaner Branching With IFS