BITLSHIFT Function
Shift the bits of a number to the left by a number of positions, which multiplies it by a power of 2. number1 is a whole number from 0 to 2^48-1, and number2_or_shift the number of bits to shift; a negative shift shifts to the right. A shift of more than 53 bits, or a result greater than 2^48-1, returns #NUM!.
Syntax
BITLSHIFT(number1, number2_or_shift)
Category: Engineering. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=BITLSHIFT(12,10)
The formula returns 12288, 12 shifted left by 10 bits (12 × 1024).
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.