# RIGHT Function

> Take characters from the end of a text with the RIGHT formula function of TX Sheet Control: the default of one character, longer counts and the #VALUE! error.

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

---

Take characters from the end of a text. `text` is the text and `num_chars` the number of characters to return (1 when omitted); a `num_chars` greater than the length returns the whole text, and 0 returns empty text. A negative `num_chars` returns `#VALUE!`.

### Syntax

```text
RIGHT(text, num_chars)
```

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

Available for supported offline calculation.

### Examples

```text
=RIGHT("Spreadsheet",5)
```

The formula returns sheet.

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:** [REPT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rept/llms-full.txt)
- **Next:** [RIGHTB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rightb/llms-full.txt)
