# BITRSHIFT Function

> Shift the bits of a whole number to the right with BITRSHIFT in TX Sheet Control: shift amount, negative shifts to the left, the 2^48-1 limit and #NUM! errors.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > BITRSHIFT Function
- **218 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitrshift/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitrshift/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitrshift/llms-full.txt

---

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

```text
BITRSHIFT(number1, number2_or_shift)
```

Category: Engineering. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=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.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [BITOR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitor/llms-full.txt)
- **Next:** [BITXOR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitxor/llms-full.txt)
