ReferenceFunctionsText Functions
TEXTSPLIT
TEXTSPLIT: Splits text into a dynamic 2D array by column and optional row delimiters.
Summary
TEXTSPLIT supports multiple delimiters, optional case-insensitive matching, and output padding.
Remarks
- Column delimiter is required; row delimiter is optional.
match_mode=0is case-sensitive,match_mode=1is case-insensitive.ignore_empty=TRUEdrops empty segments created by adjacent delimiters.- Rows are padded to equal width using
pad_with(default#N/A).
Examples
Split CSV row
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
{A,B,C}
Row and column split with padding
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
{A,B;C,#N/A}
Related functions
FAQ
Is delimiter matching case-sensitive?
Yes by default; set match_mode to 1 for case-insensitive delimiter matching.
Runtime metadata
Category
Text
Signature
TEXTSPLIT(arg1: Any, arg2: Any, arg3?: Any, arg4?: Logical, arg5?: Number, arg6?: Any)Arity
min 2, max 6
Arguments
arg1Any · Scalar
arg2Any · Scalar
arg3optionalAny · Scalar
arg4optionaldefaultLogical · Scalar · coercion Logical
arg5optionaldefaultNumber · Scalar · coercion NumberLenientText
arg6optionaldefaultAny · Scalar
Caps
PURE
Source