The Excel BITXOR function returns a decimal number representing the bitwise XOR of two numbers. For each corresponding bit in the binary representation of the numbers a logical XOR operation is performed and the resulting number returned.
Returns a 'Bitwise Xor' of two numbers
=BITXOR (number1, number2)
number1 - A positive decimal number.
number2 - A positive decimal number.
The input numbers must be greater than or equal to zero and no larger than 2^48 - 1.
Difference Between OR and XOR
When a waiter in a breakfast diner asks if you want coffee OR orange juice, they really are asking if you want coffee XOR juice. You can have one or the other, but not both.
The Excel BITOR function returns a decimal number representing the bitwise OR of two numbers. For each corresponding bit in the binary representation of the numbers a logical OR operation is performed, and the resulting number returned.
The XOR function performs what is called "exclusive OR". With two logical statements, XOR returns TRUE if either statement is TRUE, but returns FALSE if both statements are TRUE. If neither is TRUE, XOR also returns FALSE.
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.