EngineeringExcel 2013

BITAND

Keep only the bit positions set in both nonnegative integers.

Syntax

=BITAND(number1, number2)

Worked example

Keep the common set bit in binary 110 and 011.

=BITAND(6,3)

Result 2

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor