Logical function

NOT function

Reverses a logical value: TRUE becomes FALSE and FALSE becomes TRUE. Useful for "is not" conditions and excluding cases.

Available in All versions of Excel

In every Excel versionWorks in Google Sheets

Syntax

NOT(logical)
ArgumentWhat it means
logicalRequiredA condition or value that works out to TRUE or FALSE. Numbers are allowed: 0 counts as FALSE, any other number as TRUE.

Returns: FALSE if logical is TRUE, TRUE if it is FALSE.

How NOT works

NOT flips a TRUE/FALSE answer to its opposite. On its own that sounds trivial, but it is the cleanest way to say "is not" in a formula: not blank, not closed, not an error, not in a given region. You will mostly meet it inside IF, AND and OR, or in conditional-formatting rules.

For simple comparisons you often have a shorter alternative: NOT(B2="Closed") is the same as B2<>"Closed", and NOT(B2>100) is the same as B2<=100. NOT earns its place when the thing you want to reverse is itself a function returning TRUE/FALSE, such as ISBLANK, ISNUMBER or a whole AND condition.

Examples

1Is the ticket still open?

C2fx=NOT(B2="Closed")
ABC
1TicketStatus
2T-5001OpenTRUE
3T-5002Closed
4T-5003Waiting

Result: TRUE

B2="Closed" is FALSE for T-5001, and NOT turns it into TRUE: the ticket still needs attention. T-5002 gives FALSE.

2Shipped only when a date has been entered

C2fx=IF(NOT(ISBLANK(B2)), "Shipped", "Pending")
ABC
1OrderShip date
2SO-4102026-03-04Shipped
3SO-411

Result: Shipped

ISBLANK(B2) is FALSE because there is a date; NOT makes it TRUE, so IF shows Shipped. SO-411 has an empty date cell and shows Pending.

3Big orders outside the North region

D2fx=AND(B2>=1000, NOT(C2="North"))
ABCD
1OrderAmountRegion
2SO-5201500SouthTRUE
3SO-5212300North
4SO-522640East

Result: TRUE

SO-520 is at least 1,000 and its region is not North, so both parts are TRUE. SO-521 fails the NOT part and returns FALSE.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The argument is text that is not a logical value, e.g. NOT("Yes").Pass a comparison such as NOT(B2="Yes").

Tips

  • NOT takes exactly one argument. To reverse several conditions together, wrap them first: NOT(OR(A2="x", B2="y")).
  • In conditional formatting, =NOT(ISFORMULA(D2)) highlights cells where someone typed over a formula with a fixed number.

Questions

Should I use NOT or <>?

For a single comparison <> is shorter and clearer. Use NOT to reverse the result of a function such as ISBLANK or of a combined AND/OR test.

What does NOT do with numbers?

It treats 0 as FALSE and any other number as TRUE, so NOT(0) is TRUE and NOT(25) is FALSE.

Google Sheets

NOT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

NOT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

Recipes that use NOT