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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =NOT(logical)

NOT
=NOT(B1)

Arguments

NameRequiredWhat to pass
logicalRequiredA 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

=NOT(B1)B2
Exempt
AB
1Tax exemptFALSE
2Charge taxTRUE
A picture of the sheet, not a live calculator. If B1 is TRUE, the charge cell becomes FALSE.

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!.