Text

Google Sheets SPLIT Function — Syntax, Examples & Tips

Learn how to use the SPLIT function in Google Sheets to divide text into separate cells by a delimiter. Includes syntax, examples, and troubleshooting tips.

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

What SPLIT Does

The SPLIT function takes a text string and breaks it into individual cells based on a delimiter you specify. Each piece lands in its own adjacent cell, spreading horizontally. It is the go-to function when you receive data crammed into a single column — like full names, addresses, or CSV-style values — and need it separated cleanly.

Syntax

=SPLIT(text, delimiter, [split_by_each], [remove_empty_text])
ParameterDescription
textThe string to split.
delimiterOne or more characters to split on.
split_by_eachOptional. If TRUE (default), each character in the delimiter string is treated as a separate delimiter. If FALSE, the entire string is used as one delimiter.
remove_empty_textOptional. If TRUE (default), empty strings from consecutive delimiters are removed. If FALSE, empty cells are kept.

Basic Examples

Split a full name into first and last

A
1Maria Santos
=SPLIT(A1, " ")

Result:

Output Col 1Output Col 2
MariaSantos

Split a comma-separated list

A
1red,green,blue
=SPLIT(A1, ",")

Result:

Col 1Col 2Col 3
redgreenblue

Split a file path by slashes

A
1/home/user/documents/report.pdf
=SPLIT(A1, "/")

Result:

Col 1Col 2Col 3Col 4
homeuserdocumentsreport.pdf

The leading slash produces an empty piece, but since remove_empty_text defaults to TRUE, that empty value is dropped automatically.

Advanced Examples

Split by a multi-character delimiter

Sometimes data uses a string like " - " or " | " as a separator:

A
1Tokyo - Japan - Asia
=SPLIT(A1, " - ", FALSE)

Setting split_by_each to FALSE ensures the function looks for the full string " - " rather than splitting on every space, dash, and space individually.

Result:

Col 1Col 2Col 3
TokyoJapanAsia

Extract a domain from an email address

If you only want the domain part of an email, pair SPLIT with INDEX:

=INDEX(SPLIT(A1, "@"), 1, 2)

For A1 = "alex@example.com", this returns example.com. INDEX picks the second piece from the split result without needing a helper column.

Common Mistakes

  • Unexpected extra splits when split_by_each is TRUE. If your delimiter is ", " and you leave split_by_each at its default, the function splits on every comma AND every space separately. Set the third argument to FALSE to treat the delimiter as a single unit.
  • Running out of room for the output. SPLIT spills horizontally into adjacent cells. If those cells already contain data, you will get a #REF! error. Make sure there is enough empty space to the right.
  • Trying to split vertically. SPLIT only expands across columns. If you need the results stacked in rows, wrap it with TRANSPOSE: =TRANSPOSE(SPLIT(A1, ",")).

SheetAI Tip

Don't want to memorize this syntax? With SheetAI, just type what you need in plain English and the formula is generated for you. Install SheetAI to try it free.

Skip the formula. Describe what you need.

SheetAI lets you type what you want in plain English and generates the perfect formula — no syntax to memorize.

Try SheetAI Free