Returns a bitwise OR of two numbers.
Syntax
BITOR(number1, number2)Argument
number1obligatoriskt
The first integer to compare.
number2obligatoriskt
The second integer to compare.
The BITOR function compares the binary representations of two integers and returns a result where each bit is 1 if either of the corresponding bits in the input numbers is 1. If both bits are 0, the result bit is 0.
=BITOR(5, 3)→75 (binary 101) OR 3 (binary 011) equals 7 (binary 111).
Select a cell
Click on the cell where you want to display the result.
Enter the formula
Type =BITOR(number1, number2) replacing the arguments with your integers.
Excel will truncate the numbers to integers before performing the calculation.