Here is a fairly common scenario where we need to calculate if sales people qualify for a bonus using NOT with IF and AND.
OR only requires one argument to be TRUE, so it returns the result if TRUE. =IF(AND(NOT(A2>1),NOT(A250)),A3,'The value is out of range')ġ00 is not less than 0 (FALSE), and 100 is greater than 50 (TRUE), so NOT reverses the arguments to TRUE/FALSE. Here are some general examples of using NOT by itself, and in conjunction with IF, AND and OR. If logical is FALSE, NOT returns TRUE if logical is TRUE, NOT returns FALSE. A value or expression that can be evaluated to TRUE or FALSE. The NOT function syntax has the following arguments: By using the NOT function as the logical_test argument of the IF function, you can test many different conditions instead of just one. For example, the IF function performs a logical test and then returns one value if the test evaluates to TRUE and another value if the test evaluates to FALSE.
One common use for the NOT function is to expand the usefulness of other functions that perform logical tests. The NOT function reverses the value of its argument.