Logical Function
Logical functions are used to evaluate an expression in excel with a list of values, to return either TURE or FALSE as the output result. Below are the common logical functions in excel and their usage.
FUNCTIONS | USAGE |
---|---|
AND |
Returns TRUE if ALL conditions are true. For example, =AND(A1=B2,B2=C3) if A1 is equals to B2 and B2 is equals to C3 it will return TRUE, but if either or only A1 is equals to B2 or B2 is equals to C3 it will return FALSE |
OR |
Returns TRUE if any of the conditions are true. For example, =AND(A1=B2,B2=C3) if A1 is equals to B2 and B2 is not equals to C3 it will return OR B2 is equals to C3 but A1 is not equals to B2 it will return TRUE. But if either A1 is not equals to B2 and B2 is not equals to C3 it will return FALSE |
NOT |
Returns the reverse (opposite) of the result. For example, =AND(A1=B2) if A1 is equals to B2 it will return FALSE. But if A1 is not equals to B2 it will return TRUE |
XOR |
Returns the reverse (opposite) result of the OR function above. |