XOR
Check whether an odd number of the supplied conditions are true.
Syntax
=XOR(logical1, [logical2], …)Worked example
Test whether exactly one of two conditions is true.
=XOR(TRUE,FALSE)Result TRUE
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceHow To Use The XOR Function In Excel
Practice XOR
Test whether exactly one of two conditions is true.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 |
Show example formula
=XOR(B2,B3) Lesson quiz
Answer three questions to see your level in this lesson.
