Excel NOT function
NOT reverses a boolean. Its useful role is making "not equal" clearer than the <> operator, and inverting a whole block of logic in one place: NOT(AND(...)) reads better than negating each condition. Standalone uses are rare.
Logic · Available in: Excel 97 and every desktop version since
Syntax
NOT(logical)What it returns TRUE becomes FALSE and FALSE becomes TRUE.
| Arguments | ||
|---|---|---|
| logical | required | The value or expression to reverse; the number 0 counts as FALSE, any other number as TRUE. |
Examples
Exclude one status
| Status | Count? |
| Closed | |
| Open |
= IF(NOT(A2="Closed"),"Count it","Skip")→ Skip
A2 is Closed, so NOT makes it FALSE and the formula takes the Skip branch. It is the same as A2<>"Closed", but once the inner test grows, wrapping it in NOT stays readable.
Common mistakes
- 1.Relying on NOT plus equals when case matters — the = comparison itself ignores case.
- 2.NOT takes exactly one argument; NOT(A,B) is an error. That case needs NOT(AND(A,B)).
- 3.Reversing text: NOT("abc") returns #VALUE!, because text is not a boolean.
How to use it
- 1.Click the cell where the result should appear.
- 2.Type = then the function name, and press Tab to accept it.
- 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
- 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.
Frequently asked questions
What is the syntax of NOT?
NOT(logical). What it returns: TRUE becomes FALSE and FALSE becomes TRUE.
Which Excel versions support NOT?
Excel 97 and every desktop version since. It is available in every desktop version unless the note above says otherwise.
Why does NOT return an error instead of a value?
Relying on NOT plus equals when case matters — the = comparison itself ignores case.