Returns a bitwise 'exclusive OR' of two numbers.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
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)ผลลัพธ์: 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.