Not
NOT Function¶
The NOT function in Excel is a logical function used to reverse the value of its argument. If given a logical value of TRUE, NOT returns FALSE; if given FALSE, it returns TRUE.
Syntax:¶
NOT(logical)
- logical: A logical value or expression that can be evaluated as
TRUEorFALSE.
Examples:¶
=NOT(TRUE)would returnFALSE.=NOT(FALSE)would returnTRUE.=NOT(A1=B1)would returnTRUEifA1is not equal toB1, andFALSEifA1is equal toB1.
Usage Notes:¶
- The
NOTfunction is often used in conjunction with other logical functions likeIF,AND, andORto create more complex logical tests. - It can be especially useful in scenarios where you need to conditionally apply formatting, perform calculations, or filter data based on the inverse of a given condition.
Note: Since
NOTonly accepts a single logical argument, if you need to reverse multiple logical tests at once, you may need to use it in combination withANDorOR.