
EngineeringLevel: ExpertAvailable in: Excel 2013+
In this article
- Syntax
- Examples
- Example 1
- Related functions
BITAND compares numbers bit by bit. Useful for decoding status flags stored as one number.
Syntax
=BITAND(number1, number2)
| Argument |
What it means |
number1, number2 |
Non-negative whole numbers. |
Examples
Example 1
=BITAND(B2, 4)>0
Is the “blocked” flag (value 4) set in a status code?
DEC2BIN · MOD
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong