BITXOR Function in Excel: Bitwise Exclusive OR

⏱ 1 min readUpdated 28 September 2026

EngineeringLevel: ExpertAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

BITXOR flips bits — on where exactly one input has them on.

Syntax

=BITXOR(number1, number2)
Argument What it means
number1, number2 Whole numbers.

Examples

Example 1

=BITXOR(B2, 4)

Toggle the flag worth 4.

BITOR · BITAND

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong