Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
BITAND performs a bitwise AND operation on two non-negative decimal integers, returning a new integer where each bit is 1 only if the corresponding bits of both operands are 1. It is commonly used to check whether a specific flag or permission bit is set in a bitmask field.
=BITAND(12,10)=BITAND(12,10)Computed by a real spreadsheet engine on the sample data below.
| Number1 | Number2 | BITAND Result |
| 12 | 10 | =BITAND(12,10) |
| 7 | 5 | =BITAND(7,5) |
| 255 | 15 | =BITAND(255,15) |
| 6 | 3 | =BITAND(6,3) |
=BITAND(12,10)→8
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need a version for your data?
Try: “Check which permission bits are set in both user and role masks using bitwise AND”
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: