Skip to main content

BITRSHIFT

The BITRSHIFT function returns a number shifted right by the specified number of bits.

Syntax

=BITRSHIFT(number, shift_amount)

Parameters

  • number: The number to shift
  • shift_amount: The number of bits to shift right

Examples

=BITRSHIFT(16, 2) // Returns 4 (shifts 10000 right 2 positions to get 100)
=BITRSHIFT(6, 1) // Returns 3 (shifts 110 right 1 position to get 11)