1. Home
  2. Functions
  3. Text
  4. SPLIT

SPLIT function

Splits text at a delimiter into a row of cells.

Syntax

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

Arguments

ArgumentRequiredDescription
textRequiredThe text to split
delimiterRequiredThe characters to split at
split_by_eachOptionalTRUE (default) splits at each character of the delimiter, FALSE at the whole delimiter
remove_empty_textOptionalTRUE (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 1 by 3 array
Spilled result
ABC
1abc
=SPLIT("a--b-c", "--", FALSE)Result 1 by 2 array
Spilled result
AB
1ab-c
=SPLIT("1,2", ",")Result 1 by 2 array
Spilled result
AB
112

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.