How to Split Text Into Columns in Google Sheets
Paste =SPLIT(A2," ") to break the text in A2 into separate columns at every space β βJane Doeβ becomes Jane in one cell and Doe in the next.
=SPLIT(A2," ")
Splits A2 wherever a space appears and spills the pieces across the columns to the right. Leave those columns empty.
How it works
SPLIT breaks one string into parts using a delimiter you choose β a space, comma, dash, anything in quotes. The result spills into the cells to the right, so make sure they are clear. Unlike the Data β Split text to columns menu action, the formula keeps the original cell intact and updates live. To process a whole column at once, wrap it in ARRAYFORMULA.
Variations
Split on commas
=SPLIT(A2,",")
Good for CSV-style values pasted into one cell.
Split and keep empty cells
=SPLIT(A2,",",TRUE,FALSE)
The final FALSE stops it from collapsing consecutive delimiters.
Split on either a comma or a space
=SPLIT(A2,", ")
Each character in the delimiter string is treated as a separator.
Examples
| Scenario | Formula |
|---|---|
| Full name into first / last | =SPLIT(A2," ") |
| Tag list separated by commas | =SPLIT(A2,",") |
FAQ
Why do I get a #REF! error when I use SPLIT?
The result needs empty cells to the right to spill into. #REF! means it is overwriting existing data β clear those columns or move the formula.
How do I split a whole column at once?
Use ARRAYFORMULA around SPLIT is limited; instead drag the formula down, or use =ARRAYFORMULA(SPLIT(A2:A," ")) which works for a single delimiter per row.
How is SPLIT different from the menu split?
The menu (Data β Split text to columns) overwrites the original cell one time. =SPLIT keeps the source and recalculates when it changes.
Related formulas
- #ERROR! in Google Sheets β Fix Formula Parse Errors
- #N/A Error in Google Sheets β Why Lookups Return It and How to Fix
- #NAME? Error in Google Sheets β Fix Unknown Names
- #NUM! Error in Google Sheets β Causes and Fixes
- #REF! Error in Google Sheets β What It Means and How to Fix It
- #VALUE! Error in Google Sheets β Causes and Fixes
- COUNTIF vs COUNTIFS in Google Sheets β When to Use Each
- FILTER vs QUERY in Google Sheets β Which Should You Use