Flipping Logic With NOT
Reverse a TRUE or FALSE result with the NOT function.
Turning Logic Upside Down
Sometimes it is easier to describe what you do not want than what you do. You might say show everyone who is not from the East region, or flag any order that is not paid.
The NOT function reverses a logical value. If something is TRUE, NOT makes it FALSE. If it is FALSE, NOT makes it TRUE.
It is the simplest logical function, taking just one condition, but it unlocks cleaner ways to express many rules.
The Shape of NOT
Unlike AND and OR, the NOT function takes exactly one argument:
- logical a single condition or value that evaluates to
TRUEorFALSE
It returns the opposite. There is no second argument and no comma list. Whatever you put inside, NOT simply flips it.
=NOT(logical)All lessons in this course
- Requiring Everything With AND
- Accepting Any Match With OR
- Flipping Logic With NOT
- Cleaner Branching With IFS