Syntax
XOR(logical_expression1, [logical_expression2, ...])
Arguments
The printed syntax lists 2 argument(s), in order:
logical_expression1ogical_expressionoptional
“optional” marks an argument Google prints in square brackets; “repeatable” marks one Google prints with “…”.
Description from Google Docs Editors Help
“The XOR function performs an exclusive or of 2 numbers that returns a 1 if the numbers are different, and a 0 otherwise.”Google’s help article for XOR →
Source: Google Docs Editors Help, “Google Sheets function list” (support.google.com/docs/table/25273), record record 165 of 516, data fetched 28 September 2026. Data month: September 2026.