Function reference · Text

SPLIT

Splits text across several cells at a chosen delimiter.

SPLIT(text, delimiter, [split_by_each], [remove_empty_text])

SPLIT is the inverse of TEXTJOIN and the fastest way to break a full name, an address or a pasted CSV line into columns.

Arguments

ArgumentRequiredWhat it does
text Yes The text to split.
delimiter Yes The character or characters to split on.
split_by_each Optional TRUE (default) splits on each character in the delimiter separately.
remove_empty_text Optional TRUE (default) drops empty results between consecutive delimiters.

Worked example

Full name
Ana Ruiz
Ben Okafor
=SPLIT(A2, " ")

Returns Ana | Ruiz.

First and last name land in two separate cells.

Gotchas

Related functions