Example 1
Flip a result
B2 =NOT(A2<0)
Result: TRUE
A2<0 is FALSE for a balance of 320, and NOT turns that into TRUE. It is the same as A2>=0.
B2 =NOT(A2<0) returns TRUE
Reverses a logical value: TRUE becomes FALSE and FALSE becomes TRUE. Use it to flip a test or to say "is not empty".
Syntax
=NOT()
Every version of Excel, including Microsoft 365, Excel 2024, 2021, 2019, 2016 and earlier, Excel for the web and the mobile apps.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =NOT(A2<0) returns TRUE
NOT flips a logical result. =NOT(TRUE) is FALSE, and =NOT(A2>10) is TRUE when A2 is 10 or less. It takes a single argument and gives a single TRUE or FALSE.
logical is anything that evaluates to TRUE or FALSE: a comparison, a cell holding a logical value, or the result of a function such as ISBLANK or ISNUMBER. A number is treated as TRUE unless it is zero, so =NOT(0) is TRUE and =NOT(5) is FALSE. Text that isn't "TRUE" or "FALSE" returns #VALUE!. If the argument is an error, NOT returns that error.
Most comparisons can be written the other way round, so NOT is sometimes unnecessary: NOT(A2>10) is the same as A2<=10. It helps most in four situations.
=NOT(ISBLANK(A2)) means "A2 has something in it". =NOT(ISNUMBER(A2)) means "A2 isn't a real number".=AND(NOT(A2="Closed"), B2>0) mirrors "not closed, and a positive balance".=NOT(AND(A2>0, B2>0)) is true when either is zero or less. Writing the opposite by hand, with all the signs flipped, invites mistakes.=NOT(E2) turns a flag column the other way round.De Morgan's laws tie NOT, AND and OR together:
NOT(AND(a, b)) is the same as OR(NOT(a), NOT(b)).NOT(OR(a, b)) is the same as AND(NOT(a), NOT(b)).So "not both" means at least one is missing, and "neither" means both are missing. If a formula is hard to read, try the other form.
For a simple "is not equal" test, <> is shorter: A2<>"Closed" instead of NOT(A2="Closed"). Both give the same answer. <>"" is the usual test for "not empty text", but it also treats a truly empty cell as empty, so it can be used instead of NOT(ISBLANK()) when you don't mind cells that hold "".
In Microsoft 365 and Excel 2021 or later, NOT works on arrays: =NOT(A2:A6="Paid") returns a column of TRUE and FALSE values that spills. Combine it with FILTER to pick rows that don't match.
NOT isn't the same as a minus sign or a negative number. It affects only the logical state. A cell that contains the text "TRUE" isn't a logical TRUE, and NOT of it returns #VALUE! only if the text isn't exactly TRUE or FALSE.
ISBLANK(A2) or B2>10. A number counts as TRUE unless it is zero. Text other than "TRUE" and "FALSE" returns #VALUE!.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =NOT(A2<0)
Result: TRUE
A2<0 is FALSE for a balance of 320, and NOT turns that into TRUE. It is the same as A2>=0.
B2 =NOT(A2<0) returns TRUE
Example 2
C2 =NOT(ISBLANK(B2))
Result: TRUE
ISBLANK(B2) is FALSE because B2 holds a date, and NOT turns that into TRUE. In C3 the cell is empty, so the result would be FALSE.
C2 =NOT(ISBLANK(B2)) returns TRUE
Example 3
D2 =IF(AND(NOT(B2="Paid"),C2>1000),"Chase","Leave")
Result: Chase
The invoice isn't Paid and is over 1,000, so both parts of AND are true. NOT(B2="Paid") could also be written B2<>"Paid".
D2 =IF(AND(NOT(B2="Paid"),C2>1000),"Chase","Leave") returns Chase
Example 4
B2 =NOT(A2)
Result: TRUE
Zero counts as FALSE, so NOT returns TRUE. Any other number would give FALSE.
B2 =NOT(A2) returns TRUE
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In E2, return TRUE when the invoice has a paid date in column B and FALSE when it is empty. Use NOT, and fill down to E8.
Answer in E2, then it fills down to E8.
NOT(A2=B2) and A2<>B2 do the same thing. Choose the shorter, clearer one.NOT(A2, B2) is an error. To reverse several tests, put them in AND or OR first and wrap that.NOT(5) is FALSE and NOT(0) is TRUE. Make sure that is what you mean.#VALUE!. Compare the text first, such as NOT(A2="Paid")."" returned by a formula, because ISBLANK is FALSE for it. Use A2<>"" to treat both as empty.It reverses TRUE and FALSE. `=NOT(A2>10)` is TRUE when A2 is 10 or less.
Use `=NOT(ISBLANK(A2))` or `=A2<>""`. The second also treats empty text as empty.
For a simple comparison they give the same answer: `NOT(A2="x")` and `A2<>"x"`. NOT is needed to reverse a function result, such as ISBLANK, or a whole AND or OR.
Its argument is text that isn't TRUE or FALSE. Compare the text to something first, so the argument is a logical value.
NOT is taught in Logic and text, lesson 3: NOT and exclusion rules. Each lesson is a short, graded exercise like the one above.