SheetRocks
Documentation/Formulas/SPLIT

SPLIT

Divides text around a specified character or string and returns the parts in a single-row array.

Syntax

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

Arguments

Argument Description Required
text The text to split. Required
delimiter The character(s) to use for splitting. Required
split_by_each If TRUE, split by each character in delimiter; if FALSE, split by the entire delimiter string. Defaults to TRUE. Optional
remove_empty_text If TRUE, remove empty strings from result. Defaults to TRUE. Optional

Examples

Split text by comma

=SPLIT(A1, ",")
Result ⇒ A
A
1 A,B,C

Split by each character

=SPLIT(A1, "mn")
Result ⇒ D
A
1 DmOnnCmSn

Split by exact string

=SPLIT(A1, "-", FALSE)
Result ⇒ apple
A
1 apple-banana-cherry

Related Functions

Other Text functions:


← Back to Formula Reference