- Advanced Excel Functions Tutorial
- Advanced Excel Functions - Home
- Compatibility Functions
- Advanced Excel Functions - Cube
- Database Functions
- Date & Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Advanced Excel Functions - Logical
- Lookup & Reference Functions
- Math & Trignometric Functions
- Statistical Functions
- Useful Resources
- Quick Guide
- Useful Resources
- Discussion
Engineering - BITRSHIFT Function
Description
The BITRSHIFT function returns a number shifted right by the specified number of bits.
Syntax
BITRSHIFT (number, shift_amount)
Arguments
Argument | Description | Required/ Optional |
---|---|---|
number | Must be an integer greater than or equal to 0. | Required |
shift_amount | Must be an integer. | Required |
Notes
Shifting a number right is equivalent to removing digits from the rightmost side of the binary representation of the number. For example, a 2-bit shift to the right on the decimal value 13 converts its binary value (1101) to 11, or 3 in decimal.
If either argument is outside its constraints, BITRSHIFT returns the #NUM! Error value.
If Number is greater than (2^48)-1, BITRSHIFT returns the #NUM! Error value.
If the absolute value of Shift_amount is greater than 53, BITRSHIFT returns the #NUM! Error value.
If either argument is a non-numeric value, BITRSHIFT returns the #VALUE! Error value.
A negative number used as the Shift_amount argument shifts the number of bits to the left.
A negative number used as the Shift_amount argument returns the same result as a positive Shift_amount argument for the BITLSHIFT function.
Applicability
Excel 2013, Excel 2016