NOT Function
Flips TRUE to FALSE and FALSE to TRUE.
Category
Logical
Available in
All versions, Microsoft 365
Returns
TRUE or FALSE
Overview
NOT reverses a logical value. It's handy when a function naturally answers the opposite question to the one you're asking.
ISBLANK asks “is it empty?” — NOT(ISBLANK(A2)) asks “has something been entered?”
Syntax
=NOT(logical) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| logical | Yes | A value or condition that works out to TRUE or FALSE. |
Examples
Example 1 — Tickets still open
Anything that isn't Closed is still open.
C2fx=NOT(B2="Closed")
| A | B | C | |
|---|---|---|---|
| 1 | Ticket | Status | Open? |
| 2 | T-01 | Closed | FALSE |
| 3 | T-02 | Open | TRUE |
| 4 | T-03 | Pending | TRUE |
| 5 | T-04 | Closed | FALSE |
=NOT(B2="Closed") Explain
=B2<>"Closed" gives the same answer — <> means “not equal to”. NOT shines when the test is a function, not a simple comparison.
Example 2 — Only filled-in rows
Calculate only when an amount has been entered.
=IF(NOT(ISBLANK(B2)), B2*1.13, "") Explain
Example 3 — Excluding test accounts
Keep every customer whose name doesn't contain "test".
=FILTER(A2:C200, NOT(ISNUMBER(SEARCH("test", A2:A200)))) Explain
- SEARCH finds "test" and returns its position, or an error.
- ISNUMBER turns that into TRUE (found) or FALSE.
- NOT flips it, so FILTER keeps the rows without "test".
Common mistakes
- Double negatives. NOT(B2<>"Closed") is just B2="Closed". If a formula needs a moment's thought to read, simplify it.
Notes
- NOT takes exactly one argument. To reverse several conditions together, wrap them: NOT(OR(…)).
- Related functions: AND, OR, XOR, IF, ISBLANK.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.