Skip to content

NOT

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

Logical

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
A
B
C
D
1
Balance
Not overdrawn?
2
320
TRUE
3
4

B2 =NOT(A2<0) returns TRUE

How NOT works

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.

The argument

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.

Where NOT earns its place

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.

  • Reversing an IS function. The IS functions, such as ISBLANK, ISNUMBER, ISTEXT and ISERROR, answer one way only. =NOT(ISBLANK(A2)) means "A2 has something in it". =NOT(ISNUMBER(A2)) means "A2 isn't a real number".
  • Reading a rule aloud. Sometimes a requirement is clearer as an exception. =AND(NOT(A2="Closed"), B2>0) mirrors "not closed, and a positive balance".
  • Reversing a complex test. =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.
  • Flipping a TRUE/FALSE column. =NOT(E2) turns a flag column the other way round.

NOT with AND and OR

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.

NOT and <>

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

Arrays

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.

Common mistakes

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.

Arguments

logical
A value or condition that can be evaluated as TRUE or FALSE, such as ISBLANK(A2) or B2>10. A number counts as TRUE unless it is zero. Text other than "TRUE" and "FALSE" returns #VALUE!.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

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
A
B
C
D
1
Balance
Not overdrawn?
2
320
TRUE
3
4

B2 =NOT(A2<0) returns TRUE

Example 2

"Is not empty" with ISBLANK

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
A
B
C
D
1
Order
Delivery date
Has date?
2
O-1
12-Feb-2025
TRUE
3
O-2
4
5

C2 =NOT(ISBLANK(B2)) returns TRUE

Example 3

Exclude one status inside IF

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
A
B
C
D
E
1
Invoice
Status
Amount
Chase?
2
INV-5
Open
1250
Chase
3
4

D2 =IF(AND(NOT(B2="Paid"),C2>1000),"Chase","Leave") returns Chase

Example 4

NOT applied to a number

B2 =NOT(A2)

Result: TRUE

Zero counts as FALSE, so NOT returns TRUE. Any other number would give FALSE.

B2
A
B
C
D
1
Units on hand
Out of stock?
2
0
TRUE
3
4

B2 =NOT(A2) returns TRUE

Your turn.

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.

E2
A
B
C
D
E
F
1
Invoice
Paid date
Status
Amount
Has paid date?
Chase?
2
INV-1
12-Feb-2025
Paid
1,250
3
INV-2
Open
980
4
INV-3
Open
2,175
5
INV-4
24-Feb-2025
Paid
640
6
INV-5
Disputed
1,450
7
INV-6
Open
1,890
8
INV-7
Open
1,000
9

Common mistakes

  • NOT(A2=B2) and A2<>B2 do the same thing. Choose the shorter, clearer one.
  • NOT works on a single value. NOT(A2, B2) is an error. To reverse several tests, put them in AND or OR first and wrap that.
  • A number counts as TRUE unless it is zero, so NOT(5) is FALSE and NOT(0) is TRUE. Make sure that is what you mean.
  • Text that isn't "TRUE" or "FALSE" returns #VALUE!. Compare the text first, such as NOT(A2="Paid").
  • NOT(ISBLANK(A2)) is FALSE for a cell that holds "" returned by a formula, because ISBLANK is FALSE for it. Use A2<>"" to treat both as empty.

Questions people ask

What does NOT do in Excel?

It reverses TRUE and FALSE. `=NOT(A2>10)` is TRUE when A2 is 10 or less.

How do I test that a cell is not empty?

Use `=NOT(ISBLANK(A2))` or `=A2<>""`. The second also treats empty text as empty.

What is the difference between NOT and <>?

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.

Why does NOT return #VALUE!?

Its argument is text that isn't TRUE or FALSE. Compare the text to something first, so the argument is a logical value.

Learn NOT in a real sheet.

NOT is taught in Logic and text, lesson 3: NOT and exclusion rules. Each lesson is a short, graded exercise like the one above.