Value
The value to negate.
Returns
The negated value.
Negates the logical value, turning TRUE into FALSE and FALSE into TRUE. ! TRUE ! TRUE returns FALSE and ! FALSE ! FALSE returns TRUE.
Use ! , && and || in conjunction with IF to express logical conditions.
This formula returns 2 only if Value1 is 20 and Value2 is not 40, and 4 otherwise:
The formula can also be written using the AND and NOT functions:
&& is written between the values to test, instead of before them, which can make formulas easier to read.
To make the formula even easier to read, consider replacing the second = operator with either the <> operator or the != operator (which mean "not equal to"):
Examples
Returns TRUE.
Returns FALSE.
Returns { FALSE, TRUE, TRUE }{ FALSE; TRUE; TRUE }, as each individual array element is negated.