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 indelimiteris treated as a separate delimiter (optional; defaults toTRUE). Set toFALSEif you want to treat a multi-character string (such as"--") as a single delimiter. - remove_empty_text: Set to
TRUEto omit empty elements created by consecutive delimiters, orFALSEto keep them as blank cells (optional; defaults toTRUE).
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:
Salesis placed inB2,TokyoinC2, andPriorityinD2.
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,SPLITreturns#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 toTRUE, passing"and"as the delimiter will split on"a","n", and"d"individually. Always passFALSEas 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 inTRIM:=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.