The Excel BITRSHIFT function shifts a number right by a given number of bits (each shift halves the value, discarding the low bit) — bit-level math for flags, masks, and binary work.
Syntax
| Argument | Description | |
|---|---|---|
number | Required | A non-negative integer. |
shift_amount | Required | Bits to shift right (negative shifts left). |
How to use it
BITRSHIFT works on the binary bits of whole numbers — the foundation of flags, permissions masks, and low-level math.
Flags pattern: store on/off options as bits of one number, then test with BITAND and set with BITOR. BITLSHIFT/BITRSHIFT multiply/divide by powers of two. Inputs must be non-negative integers below 2^48.
Try it: interactive demo
Change the inputs and watch the bitwise result (with binary shown).
Practice workbook
Frequently asked questions
Which Excel versions have the BIT functions?
What are the input limits?
What is a real-world use?
How do shifts relate to multiplication?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class