Syntax
=SPLIT(text, delimiter, [split_by_each], [remove_empty_text])
Arguments
| Argument | Required | Description |
|---|
text | Required | The text to split |
delimiter | Required | The characters to split at |
split_by_each | Optional | TRUE (default) splits at each character of the delimiter, FALSE at the whole delimiter |
remove_empty_text | Optional | TRUE (default) drops empty pieces |
How to use SPLIT
When SPLIT returns more than one value, the result spills into the cells below and to the right. Keep those cells empty, or you get #SPILL!.
SPLIT takes 2 required arguments and 2 optional arguments. Type =SPLIT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=SPLIT("a,b;c", ",;")Result
=SPLIT("a--b-c", "--", FALSE)Result
=SPLIT("1,2", ",")Result