Examples for the xor formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
XOR syntax pattern
=XOR([booleans...])Use this XOR pattern as the starting point for your spreadsheet formula.
XOR in a worksheet
=XOR([booleans...])Returns TRUE if an odd number of values are truthy and FALSE otherwise.
When to use XOR
Use XOR when you need to return TRUE if an odd number of values are truthy and FALSE otherwise.
- Branch spreadsheet logic based on conditions.
- Handle errors and combine boolean checks.
How XOR works in Quadratic
In Quadratic, XOR follows the syntax XOR([booleans...]). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common XOR mistakes
Most XOR issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.