# VALUETOTEXT Function

> Return any value as text with the VALUETOTEXT formula function of TX Sheet Control: the concise and strict formats, quoted text, #VALUE! errors and an example.

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

---

Return a value as text. `format` is 0 for the concise format (the default), which returns the value as it is displayed, or 1 for the strict format, which puts text in quotation marks so that the result can be used in a formula. Any other `format` returns `#VALUE!`.

### Syntax

```text
VALUETOTEXT(value, format)
```

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

Available for supported offline calculation.

### Examples

```text
=VALUETOTEXT(123)
```

The formula returns the text "123".

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:** [VALUE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/value/llms-full.txt)
- **Next:** [VAR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/var/llms-full.txt)
