# RIGHTB Function

> Take characters from the end of a text by bytes with RIGHTB in TX Sheet Control, which counts one byte per character and returns the same result as RIGHT.

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

---

Take characters from the end of a text, counted in bytes. The arguments are the text and the number of bytes to return (1 when omitted). TX Sheet Control counts every character as one byte, including double-byte characters such as Japanese, so RIGHTB returns the same as [RIGHT](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/right/llms-full.txt). A negative number of bytes returns `#VALUE!`.

### Syntax

```text
RIGHTB(text, argument1, argument2)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=RIGHTB("abc")
```

The formula returns c.

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:** [RIGHT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/right/llms-full.txt)
- **Next:** [ROMAN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/roman/llms-full.txt)
