FormulaCamp
Completed
← All functions
Logic

XOR

TRUE if an odd number of conditions are met.

Syntax

XOR(logical1, logical2, …)

Example: =XOR(B2>0,C2>0)

Available in: Excel 2013+

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =XOR(B2>=90,C2="Yes")

Example spreadsheet for XOR
ABCDEF
1StudentScoreExtra creditAttemptsResult
2Ann92Yes2FALSE
3Bob74No0
4Cy58Yes3
5Dee81No1
6Eli662
Result in F2: FALSE
Practice this in a lesson: SWITCH, XOR, IFNA, EXACT

More in Logic