BITRSHIFT Function
Shift the bits of a number to the right by a number of positions, which divides it by a power of 2 and drops the remainder. 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 left. A shift of more than 53 bits, or a number outside the range, returns #NUM!.
Syntax
BITRSHIFT(number1, number2_or_shift)
Category: Engineering. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=BITRSHIFT(12,10)
The formula returns 0, because all four bits of 12 are shifted out; =BITRSHIFT(12,2) returns 3.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.