Split text to columns in Sheets
Split one column of text into several in Foxcolab Sheets with Data → Split text to columns…, or with TEXTSPLIT, TEXTBEFORE and TEXTAFTER formulas. Dates, percentages and leading zeros come through intact.
Updated 3 min read
In short
To split text to columns in Foxcolab Sheets, select the cells, choose Data → Split text to columns…, pick a separator such as Comma or Space, and click Split. The pieces fill the columns to the right. If those cells hold data, Sheets asks before replacing it. Dates, percentages and currency keep their format, and codes like 00742 keep their zeros. To keep the original column, use =TEXTSPLIT(A2, ", ") instead.
Key takeaways
- Data → Split text to columns… splits the first column of your selection into the columns beside it.
- If cells to the right already hold data, Sheets asks "There’s already data here. Replace it?" first. Click Replace, or cancel and insert empty columns.
- Detect automatically picks a separator for each cell on its own. Choose one yourself when some cells lack it.
- Dates, times, percentages and currency keep their format, and codes with leading zeros, such as 00742, stay as text.
- TEXTBEFORE and TEXTAFTER pull out the part before or after a separator, such as a first or last name.
Last reviewed 5 December 2026
To split text to columns in Foxcolab Sheets, select the cells, choose Data → Split text to columns…, pick the separator and click Split. It's the quickest way to break a pasted list such as Dana Lee, Pune, 00742 into a name, a city and an ID. Sheets does the work in your browser, so the data in your end-to-end encrypted spreadsheet never leaves your device to be split.
The examples use this column:
| A | |
|---|---|
| 1 | Name, City, Employee ID |
| 2 | Dana Lee, Pune, 00742 |
| 3 | Arjun Mehta, Chennai, 01318 |
| 4 | Sara Khan, Kochi, 02205 |
Split a column with the Data menu#
Select the cells
Select A1:A4, or click the column letter to select the whole column. Only the first column of your selection is split, and the pieces fill the columns to its right.
Open the dialog
Choose Data → Split text to columns….
Pick the separator
Choose Comma, Semicolon, Tab, Space or Pipe, or Custom and type your own, such as a hyphen. Detect automatically guesses for each cell.
Split
Click Split. Column A keeps the names, B gets the cities and C the IDs. Spaces around each piece are removed.
If the result is wrong, press Ctrl+Z (⌘Z on a Mac). One undo puts the whole column back, including any cells the split replaced.
When the columns to the right hold data#
Before it writes anything, Sheets checks the cells the pieces would land in. If any of them already have content, it asks There’s already data here. Replace it? and says how many cells, such as "2 cells to the right already have content. Splitting replaces them."
- Click Replace to split anyway.
- Click Cancel to keep everything as it is. Then select as many columns to the right as you need and choose Insert → Columns → Insert 2 columns left (the number matches your selection) to make room, and split again.
Pick the right separator#
Detect automatically looks at each cell on its own and uses the first separator it finds, checking comma, semicolon, tab, pipe and then space. That works for a tidy list, but a cell that's missing the comma, such as Sara Khan, splits on its space instead. When your data has one separator, choose it yourself.
Custom splits on exactly what you type, so - (space, hyphen, space) keeps hyphenated names together. Two separators in a row leave an empty cell between the pieces.
Numbers, dates and leading zeros#
Each piece is read the way Sheets reads what you type, and it keeps the look it had:
| Piece | Becomes |
|---|---|
00742 | 00742, kept as text so the zeros stay |
2026-11-03 | A real date, shown as a date |
10% | 10%, a percentage you can calculate with |
₹1250 | 1250, shown as ₹1250 |
42 | The number 42 |
Pune | Pune |
A cell that already has a number format keeps it. To keep every piece exactly as typed, select the columns to the right first and choose Format → Number → Plain text, or use TEXTSPLIT below.
Commas inside quotation marks split too, so a line from a CSV file like "Lee, Dana",Pune comes out in three pieces. For a whole CSV file, import it instead.
Split with a formula#
Formulas leave the original column alone and update when it changes. Put them in empty columns and fill them down.
=TEXTSPLIT(A2, ", ") → Dana Lee | Pune | 00742
=TEXTSPLIT(A2, , ", ") → the same pieces, one per row
=TEXTBEFORE(A2, ",") → Dana Lee
=TEXTAFTER(A2, ", ", -1) → 00742TEXTSPLIT splits on the whole separator and keeps every piece as text, so 00742 keeps its zeros. TEXTBEFORE and TEXTAFTER return the part before or after a separator. A negative number counts from the end, so -1 means the last one. With a full name in B2, =TEXTBEFORE(B2, " ") gives the first name and =TEXTAFTER(B2, " ", -1) the last.
The SPLIT function also works, with one catch: it splits on each character of the separator. =SPLIT(A2, ", ") breaks Dana Lee in two because the space counts as a separator. Add FALSE to split on the whole string: =SPLIT(A2, ", ", FALSE).
Related#
Frequently asked questions
Can I split one cell into rows instead of columns?
Yes, with a formula. TEXTSPLIT takes a row separator as its third part, so =TEXTSPLIT(A2, , ";") puts each piece of A2 on its own row. Leave the column separator empty when you only want rows.
How do I undo Split text to columns?
Press Ctrl+Z (⌘Z on a Mac) straight away. The whole split is one change, so one undo puts the original text back and restores any cells you chose to replace.
Why did a name split into two columns when I chose Detect automatically?
Detect automatically looks at each cell on its own and uses the first separator it finds, checking comma, semicolon, tab, pipe and then space. A cell with no comma, such as Sara Khan, splits on its space. Pick Comma yourself so every cell splits the same way.
What's the difference between SPLIT and TEXTSPLIT?
SPLIT splits on each character of the separator unless you add FALSE, and it turns number-like pieces into numbers. TEXTSPLIT splits on the whole separator, keeps every piece as text, and can split into rows as well as columns.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.