BITXOR function
a bitwise 'Exclusive Or' of two numbers.
Engineering · Excel 2013+
Where can you use it?
Engineering and technical analysis teams. If the calculation needs a number base, unit, complex number or special mathematical operation, check the input format against the example.
Scenario in the workbook
Find bits enabled in exactly one register to identify changed flags.
A worked example from the workbook
| Row | A | B |
|---|---|---|
| 6 | First value | Second value |
| 7 | 6 | 3 |
| 8 | 12 | 10 |
| 9 | 7 | 4 |
Record 1
=BITXOR(A7,B7)Expected result5
See the inputs and instructions for all 3 examplesSyntax
BITXOR(number1, number2)
Copyable formulas
English Excel · en-US
=BITXOR(6,3)Turkish Excel · tr-TR
=BİTÖZELVEYA(6;3)Expected result
5
Worked examples
Find bits enabled in exactly one register to identify changed flags.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B |
|---|---|---|
| 6 | First value | Second value |
| 7 | 6 | 3 |
| 8 | 12 | 10 |
| 9 | 7 | 4 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =BITXOR(A7,B7) |
5 |
| Record 2 | =BITXOR(A8,B8) |
6 |
| Record 3 | =BITXOR(A9,B9) |
3 |