<< Click to Display Table of Contents >> XOR (logical XOR function) |
Syntax:
XOR(Value1 [, Value2, Value3 ...])
Description:
XOR ("exclusive or") returns the logical value TRUE if an odd number of the arguments is TRUE, otherwise it returns FALSE.
This function is often used with only two arguments. Here, the following applies: If either one or the other argument is TRUE, it returns TRUE. On the other hand, if both are TRUE or both are FALSE, it returns FALSE.
Compatibility notes:
Microsoft Excel supports this function only in version 2013 or later. In older versions, the function is unknown.
Example:
XOR(TRUE, TRUE) returns FALSE
XOR(TRUE, FALSE) returns TRUE
XOR(FALSE, TRUE) returns TRUE
XOR(FALSE, FALSE) returns FALSE
See also: