The NOT function
NOT reverses a result: TRUE becomes FALSE and FALSE becomes TRUE. It's useful when your data records one thing ("booked") and you want to ask about the opposite ("free").
It's also a tidy way to say "anything except" inside IF, AND or OR.
=NOT(logical)
Arguments
- logical
- A condition or a TRUE/FALSE value to reverse.
Try it
=NOT(B2) in D2. Meeting room 1 is booked (TRUE), so NOT returns FALSE: it isn't available.
D2
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Room | Booked | Status | Available | |
| 2 | Meeting room 1 | TRUE | Confirmed | FALSE | |
| 3 | Meeting room 2 | FALSE | Cancelled | ||
| 4 | Boardroom | FALSE | Pending | ||
| 5 | |||||
| 6 |
Edit the formula in D2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =NOT(B3) | TRUE | Room 2 isn't booked, so it is available. |
| =NOT(C3="Cancelled") | FALSE | NOT around a comparison: is this booking still live? |
| =IF(NOT(B4),"Free to book","Taken") | Free to book | Inside IF, NOT reverses the test. |
Tips
NOT(A2="x")gives the same result asA2<>"x". Use whichever reads more clearly.NOT(ISBLANK(A2))is a common way to ask "has this been filled in?"
Common mistakes
- `=NOT(B2,C2)` won't go in.NOT takes only one argument. To reverse a combined test, wrap it:
=NOT(AND(B2,C2)). - #VALUE! on a column of Yes/No text.NOT needs TRUE/FALSE, not the word Yes. Compare first:
=NOT(B2="Yes").
Practise NOT with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.