# TEXT Function

> Format numbers, dates and times as text with number format codes using the TEXT formula function of TX Sheet Control: format examples and the result.

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

---

Format a number as text with a number format. `value` is the number, date or time, and `format_text` a number format code such as `"#,##0.00"`, `"0%"`, `"yyyy-mm-dd"` or `"h:mm AM/PM"`. Text that isn't a number is returned unchanged.

### Syntax

```text
TEXT(value, format_text)
```

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

Available for supported offline calculation.

### Examples

```text
=TEXT(1234.5,"#,##0.00")
```

The formula returns the text 1,234.50.

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:** [T.DIST.RT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/t-dist-rt/llms-full.txt)
- **Next:** [TEXTAFTER Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/textafter/llms-full.txt)
