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)| Argument | What it means | |
|---|---|---|
logical | Required | A 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?
| A | B | C | |
|---|---|---|---|
| 1 | Ticket | Status | |
| 2 | T-5001 | Open | TRUE |
| 3 | T-5002 | Closed | |
| 4 | T-5003 | Waiting |
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
| A | B | C | |
|---|---|---|---|
| 1 | Order | Ship date | |
| 2 | SO-410 | 2026-03-04 | Shipped |
| 3 | SO-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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Amount | Region | |
| 2 | SO-520 | 1500 | South | TRUE |
| 3 | SO-521 | 2300 | North | |
| 4 | SO-522 | 640 | East |
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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Czech | NE |
| Danish | IKKE |
| Dutch | NIET |
| Finnish | EI |
| French | NON |
| German | NICHT |
| Hungarian | NEM |
| Italian | NON |
| Norwegian (Bokmål) | IKKE |
| Polish | NIE |
| Portuguese (Brazil) | NÃO |
| Portuguese (Portugal) | NÃO |
| Russian | НЕ |
| Spanish | NO |
| Swedish | ICKE |
| Turkish | DEĞİL |