Category: FUNCTION | Updated: 2026-11-22

How to Use the SPLIT Function in Google Sheets | Split Text Across Cells by Delimiter

How to Use the SPLIT Function

The SPLIT function divides text around a specified delimiter and automatically spills the resulting pieces across adjacent cells to the right. It is highly effective for parsing CSV-style strings, splitting full names into first and last names, and breaking apart tag lists.

Syntax

=SPLIT(text, delimiter, [split_by_each], [remove_empty_text])
  • text: The text string or cell reference to split (required).
  • delimiter: The character or string to split by, such as "," or " " (required).
  • split_by_each: If TRUE, each character in delimiter is treated as a separate delimiter (optional; defaults to TRUE). Set to FALSE if you want to treat a multi-character string (such as "--") as a single delimiter.
  • remove_empty_text: Set to TRUE to omit empty elements created by consecutive delimiters, or FALSE to keep them as blank cells (optional; defaults to TRUE).

Example Using a Table

Here is an example of splitting comma-separated tag data into Columns B, C, and D.

Row Column A (Raw Data) Column B (Formula & Result 1) Column C (Result 2) Column D (Result 3)
1 Tag List Tag 1 Tag 2 Tag 3
2 Sales,Tokyo,Priority =SPLIT(A2, ",") → Sales Tokyo Priority
3 Engineering,Remote =SPLIT(A3, ",") → Engineering Remote (Blank)
  • Formula: =SPLIT(A2, ",")
  • Result: Sales is placed in B2, Tokyo in C2, and Priority in D2.

Common Errors and Notes

  • Occupied Destination Cells Cause #REF!: If any cell to the right where the split output would spill already contains a value, SPLIT returns #REF! to avoid overwriting data. Make sure enough empty columns are available.
  • Watch Out for the Default split_by_each (TRUE): Because the third argument defaults to TRUE, passing "and" as the delimiter will split on "a", "n", and "d" individually. Always pass FALSE as the third argument when splitting by a whole word or multi-character delimiter.
  • Leading/Trailing Spaces After Splitting: For data formatted with a space after the comma (like ", "), either pass ", " as the delimiter or wrap in TRIM: =ARRAYFORMULA(TRIM(SPLIT(A2, ","))).

Frequently Asked Questions

Q. Can I output SPLIT results vertically (down rows) instead of horizontally?

A. Yes, by wrapping it in TRANSPOSE. Writing "=TRANSPOSE(SPLIT(A2, ","))" places the split elements sequentially down the column.

Q. Why does SPLIT return a "#REF!" error?

A. Because one or more cells to the right where the split results need to expand already contain data or a formula. Clearing those cells allows the results to spill properly.