TX Sheet Control

BITAND Function

Function

Return the bitwise AND of two numbers: each bit of the result is 1 only where both numbers have a 1. number1 and number2_or_shift are the two numbers, whole numbers from 0 to 2^48-1; a negative number, a decimal or a larger number returns #NUM!.

Syntax

BITAND(number1, number2_or_shift)

Category: Engineering. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=BITAND(12,10)

The formula returns 8: 1100 AND 1010 is 1000 in binary.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also