Returns a bitwise 'exclusive OR' of two numbers.
Den här funktionen fungerar likadant i Google Kalkylark som i Excel — samma syntax och argument.
BITXOR(number1, number2)The BITXOR function compares the binary representations of two integers and returns a result where each bit is 1 if the corresponding bits of the inputs are different, and 0 if they are the same. It is commonly used for low-level data manipulation and bitwise logic operations.
=BITXOR(5, 3)Resultat: 6
Binary 101 (5) XOR 011 (3) equals 110 (6).
BITXOR returns a #NUM! error if the numbers are negative or exceed the maximum allowed value.