SheetRocks
Documentation/Formulas/XOR

XOR

Returns TRUE if an odd number of arguments are TRUE, and FALSE otherwise

Syntax

XOR(logical1, [logical_n])

Arguments

Argument Description Required
logical1 The first logical value or expression to evaluate Required
logical_n Additional logical values or expressions to evaluate Optional

Examples

XOR with one TRUE and one FALSE

=XOR(TRUE, FALSE)
Result ⇒ TRUE

XOR with two TRUE values

=XOR(TRUE, TRUE)
Result ⇒ FALSE

XOR with three TRUE values (odd number)

=XOR(TRUE, FALSE, TRUE)
Result ⇒ FALSE

XOR with single TRUE value

=XOR(TRUE)
Result ⇒ TRUE

Related Functions

Other Logical functions:


← Back to Formula Reference