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

BITRSHIFT function

Returns a number shifted right by a number of bits (divided by a power of 2, rounded down).

Syntax

=BITRSHIFT(number, shift_amount)

Arguments

ArgumentRequiredDescription
numberRequiredA whole number from 0 up to 2^48
shift_amountRequiredBits to shift (negative shifts left)

How to use BITRSHIFT

BITRSHIFT takes 2 required arguments. Type =BITRSHIFT( 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.

=BITRSHIFT(13, 2)Result 3
=BITRSHIFT(4, -2)Result 16

Every formula, right in your browser

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