Sub topic 2
Splitting Text into Columns with SPLIT
Prerequisites and the working model
This chapter assumes that you can enter Google Sheets formulas and reference cells or ranges. You should also know that text values are strings and that function arguments are separated by commas.
SPLIT takes one text value and separates it wherever it finds a delimiter. A delimiter is a character or string that marks a boundary, such as a comma, semicolon, or pipe character. The separated pieces spill into neighboring cells in the same row.
=SPLIT(text, delimiter, [split_by_each], [remove_empty_text])The first argument is the text to divide. The second argument identifies the boundary. The last two arguments are optional settings.
A basic split
Suppose A2 contains:
Maya Chen,Sales,ActiveEnter this formula in B2:
=SPLIT(A2, ",")Google Sheets places the results across the row:
| B2 | C2 | D2 |
|---|---|---|
| Maya Chen | Sales | Active |
The original value remains in A2. The formula produces three separate values without requiring a formula in each output cell.
If the text contains spaces after the commas, those spaces become part of the next piece. For example, Maya Chen, Sales, Active can produce Sales and Active. Apply TRIM when you need to remove leading or trailing spaces.
Choosing delimiter behavior
By default, SPLIT treats each character in the delimiter argument as a separate delimiter. This matters when the delimiter contains more than one character.
For a comma-separated list with optional spaces, this formula treats the comma and the space as separate delimiters:
=SPLIT(A2, ", ")However, if you want the exact two-character sequence comma-space to act as one delimiter, set split_by_each to FALSE:
=SPLIT(A2, ", ", FALSE)The distinction becomes important when a delimiter has meaningful characters together, such as :: or - . With FALSE, Google Sheets searches for the complete delimiter string.
You can provide several single-character delimiters in one string. This formula splits at either a comma or a semicolon:
=SPLIT(A2, ",;")The default value of remove_empty_text is TRUE. That means repeated delimiters do not normally create empty output cells. You can make both default behaviors explicit:
=SPLIT(A2, ",;", TRUE, TRUE)Set the final argument to FALSE when empty pieces represent meaningful positions. For example, A,,C has a missing middle value. Preserving that empty piece keeps C in the third output column instead of moving it left.
Applying SPLIT to several rows
When A2:A10 contains one delimited value per row, ARRAYFORMULA can apply the operation to the whole range:
=ARRAYFORMULA(SPLIT(A2:A10, ","))Each input row produces a corresponding row of results. The output area must be empty. If another value occupies a cell where a result needs to appear, Google Sheets reports an array expansion error.
To turn the pieces from one row into a column, wrap SPLIT in TRANSPOSE:
=TRANSPOSE(SPLIT(A2, ","))This is useful when a later formula expects values vertically rather than horizontally.
Common troubleshooting
- Check the delimiter for invisible spaces.
","and", "are different. - If all text stays in one cell, the delimiter does not match the data.
- If pieces appear in unexpected columns, check
split_by_each. - Clear cells to the right before using a spilling formula.
- Use
TRIMafter splitting when source text contains inconsistent spacing.
Exercise
A2 contains red;;blue. Which formula splits at semicolons and preserves the empty middle value?
Show answer
=SPLIT(A2, ";", TRUE, FALSE)