BITAND Function in Excel: Bitwise AND

⏱ 1 min readUpdated 28 September 2026

EngineeringLevel: ExpertAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. 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 article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong