# CHAR Function

> Return the character for a character code from 1 to 255 with the CHAR formula function of TX Sheet Control: the Windows-1252 codes, truncation and #VALUE!.

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

---

Return the character that a number specifies. `number` is a character code from 1 to 255; decimals are truncated, and a code outside that range returns `#VALUE!`. The codes from 128 to 255 use the Windows-1252 character set, so `CHAR(128)` returns `€`.

### Syntax

```text
CHAR(number)
```

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

Available for supported offline calculation.

### Examples

```text
=CHAR(65)
```

The formula returns `A`.

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:** [CELL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cell/llms-full.txt)
- **Next:** [CHIDIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/chidist/llms-full.txt)
