Syntax
=XOR(logical1, [logical2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
logical1 | Required | A condition, value or range |
logical2 | Optional | More conditions |
How to use XOR
XOR takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =XOR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=XOR(TRUE, FALSE)Result =XOR(TRUE, TRUE)Result Related logical functions
- IFERRORReturns a value of your choice when a formula gives an error, otherwise the formula result.
- IFNAReturns a value of your choice when a formula gives #N/A, otherwise the formula result.
- IFSChecks conditions in order and returns the value of the first one that is TRUE.
- LAMBDACreates a reusable function with parameters. Call it right away, store it in a name or pass it to MAP, REDUCE and friends.
- LETNames the results of calculations so a formula can reuse them.
- NOTReverses a logical value.
- ORTRUE when any argument is TRUE.
- SWITCHCompares a value with a list of cases and returns the result of the first match, or a default.
- TRUEThe logical value TRUE.