Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
XOR (exclusive OR) returns TRUE if an odd number of the provided conditions are TRUE, and FALSE if an even number (including zero or all) are TRUE. It is useful for toggle logic, parity checks, and scenarios where exactly one of several mutually exclusive conditions should be met.
=XOR(A2="Yes",B2="Yes")=XOR(A2="Yes",B2="Yes")Computed by a real spreadsheet engine on the sample data below.
| Approval A | Approval B | Exclusive? |
| Yes | No | =XOR(A2="Yes",B2="Yes") |
| No | Yes | =XOR(A3="Yes",B3="Yes") |
| Yes | Yes | =XOR(A4="Yes",B4="Yes") |
| No | No | =XOR(A5="Yes",B5="Yes") |
=XOR(A2="Yes",B2="Yes")→TRUE
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Check whether exactly one of two approval columns is marked Yes, but not both”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: