# ARRAYTOTEXT Function

> Convert an array or range to text with ARRAYTOTEXT in TX Sheet Control: the concise comma-separated format, the strict array constant format and an example.

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

---

Return the values of an array or range as text. `value` is the array, range or value to convert. `format` 0 (the default) returns a concise list separated by commas (`1, a, TRUE, 2`); 1 returns the strict array constant form with braces and quoted text (`{1,"a";TRUE,2}`), which a formula can use again. Any other `format` returns `#VALUE!`.

### Syntax

```text
ARRAYTOTEXT(value, format)
```

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

Available for supported offline calculation.

### Examples

```text
=ARRAYTOTEXT(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:** [AREAS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/areas/llms-full.txt)
- **Next:** [ASC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/asc/llms-full.txt)
