NOT
The NOT function in Google Sheets is used to return the opposite of a logical value. If the logical expression is TRUE, the function returns FALSE, and if the logical expression is FALSE, the function returns TRUE.
Function Syntax and Parameters
Syntax: NOT(logical_expression)
Parameters:
logical_expression: The logical value or expression to evaluate.
Step-by-Step Tutorial
-
Using
NOTwith a logical expression:- Example:
=NOT(TRUE) - Result:
FALSE
- Example:
-
Using
NOTwith a logical expression:- Example:
=NOT(FALSE) - Result:
TRUE
- Example:
Use Cases and Scenarios
- Conditional Formatting: Invert cell formatting based on a specific condition.
- Data Validation: Create a custom validation formula that returns the opposite of the expected result.
- Logical Comparisons: Use
NOTto reverse the outcome of logical comparisons.
Related Functions
AND: Returns true if all of the provided arguments are logically true.OR: Returns true if any of the provided arguments are logically true.