Function · Logical
Excel NOT function
The Excel NOT function reverses TRUE and FALSE. A customer who is not tax exempt, FALSE in the exempt cell, is charged tax.
Syntax =NOT(logical)
=NOT(B1)Arguments
| Name | Required | What to pass |
|---|---|---|
| logical | Required | A test or a cell that holds TRUE or FALSE. A number other than 0 is treated as TRUE. 0 is treated as FALSE. |
Examples
Charge tax when the exempt flag is off
=NOT(B1)Result TRUE
| A | B | |
|---|---|---|
| 1 | Tax exempt | FALSE |
| 2 | Charge tax | TRUE |
NOT flips one logical value. FALSE becomes TRUE, and TRUE becomes FALSE. On an invoice, a tax-exempt flag of FALSE means the customer is charged tax, so =NOT(B1) is TRUE. The same formula is FALSE when the flag is turned on.
It takes one argument. AND and OR are how you combine several tests before you flip the combination. A number works as a stand-in: NOT(0) is TRUE and NOT(1) is FALSE. Ordinary text is #VALUE!.