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 referenceThe BITAND function in Excel | BITAND formula in excel
Practice BITAND
Keep the common set bit in binary 110 and 011.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 |
Show example formula
=BITAND(B2,B3) Lesson quiz
Answer three questions to see your level in this lesson.
