ReferenceFunctionsText Functions
ARRAYTOTEXT
ARRAYTOTEXT: Converts an array or range into a text representation.
Summary
ARRAYTOTEXT(array, [format]) supports concise (0) and strict (1) output styles.
Remarks
- Strict mode returns brace-delimited array syntax with row/column separators.
- Concise mode flattens all values into a comma-space list.
- Cells are converted using the same scalar text rules used by
VALUETOTEXT. - Errors in scalar-only input propagate immediately.
Examples
Concise flattened output
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
1, 2, 3
Strict 2D representation
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
{1,2;3,4}
Related functions
FAQ
What changes when format is 1?
Format 1 returns brace-delimited array syntax; format 0 flattens values into a comma-space list.
Runtime metadata
Category
Text
Signature
ARRAYTOTEXT(arg1: Any | Range (Range), arg2?: Number)Arity
min 1, max 2
Arguments
arg1Any | Range · Range
arg2optionaldefaultNumber · Scalar · coercion NumberLenientText
Caps
PURE
Source