Formualizer Docs

TEXTSPLIT

Splits text into a dynamic 2D array by column and optional row delimiters.

TEXTSPLIT supports multiple delimiters, optional case-insensitive matching, and output padding.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])

Arguments

ArgumentTypeRequiredDefault
textanyRequired—
col_delimiteranyRequired—
row_delimiteranyOptional—
ignore_emptylogicalOptionalfalse
match_modenumberOptional0
pad_withanyOptional#N/A

Remarks

  • Column delimiter is required; row delimiter is optional.
  • match_mode=0 is case-sensitive, match_mode=1 is case-insensitive.
  • ignore_empty=TRUE drops empty segments created by adjacent delimiters.
  • Rows are padded to equal width using pad_with (default #N/A).

Examples

Split one comma-separated row into columns.

Formula =TEXTSPLIT("East,West",",")

Expected result {"East", "West"}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Split on either case of X, skip empty pieces, and pad the shorter final row with text.

Formula =TEXTSPLIT("EastX10;WestXX20;North","x",";",TRUE,1,"missing")

Expected result {"East", "10"; "West", "20"; "North", "missing"}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

With no delimiter occurrence the result contains a single piece of text.

Formula =TEXTSPLIT("East",",")

Expected result East

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

An error in the delimiter argument prevents splitting.

Formula =TEXTSPLIT("East,West",1/0)

Expected result #DIV/0!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Split CSV row

Formula =TEXTSPLIT("A,B,C", ",")

Expected result {"A", "B", "C"}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Row and column split with padding

Formula =TEXTSPLIT("A,B;C", ",", ";")

Expected result {"A", "B"; "C", #N/A}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Is delimiter matching case-sensitive?

Yes by default; set match_mode to 1 for case-insensitive delimiter matching.

Implementation

Engine source

On this page