NOT Function

Flips TRUE to FALSE and FALSE to TRUE.

Category

Logical

Available in

All versions, Microsoft 365

Returns

TRUE or FALSE

Taught hands-on in Level 2: Essential Formulas & Everyday Logic - Logical Functions module

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

ArgumentRequired?What it does
logicalYesA 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")
ABC
1TicketStatusOpen?
2T-01ClosedFALSE
3T-02OpenTRUE
4T-03PendingTRUE
5T-04ClosedFALSE
=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
  1. SEARCH finds "test" and returns its position, or an error.
  2. ISNUMBER turns that into TRUE (found) or FALSE.
  3. 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.
Kyle Stott

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.