1. Home
  2. Functions
  3. Engineering
  4. BITAND

BITAND function

Returns the bitwise AND of two numbers.

Syntax

=BITAND(number1, number2)

Arguments

ArgumentRequiredDescription
number1RequiredA whole number from 0 up to 2^48
number2RequiredA whole number from 0 up to 2^48

How to use BITAND

BITAND takes 2 required arguments. Type =BITAND( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=BITAND(1, 5)Result 1
=BITAND(13, 25)Result 9

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.