How to Split Text into Columns in Excel
Split names, codes, or delimited text into Excel columns with Text to Columns, TEXTSPLIT, Flash Fill, and reliable cleanup steps.
Method 1: use TEXTSPLIT for a live result
TEXTSPLIT, TEXTBEFORE, and TEXTAFTER need Microsoft 365 or Excel 2024. With region and code stored as “North, N-14” in A2, =TEXTSPLIT(A2,", ") splits at the comma-plus-space and spills the pieces across the row. Use the exact delimiter that appears in the data: splitting on "," alone would leave a leading space on every second piece. A row delimiter spills downward instead: =TEXTSPLIT(A2,,";").
Because TEXTSPLIT is dynamic, changes in A2 update the outputs. Keep the spill area empty; a non-empty cell in the way produces #SPILL!. In an older version, use LEFT, MID, RIGHT, and FIND for stable patterns, or Text to Columns for a one-time conversion.
Method 2: use Text to Columns
Text to Columns is best for a one-time split. Select only the source column, then choose Data > Text to Columns. Choose Delimited for commas, tabs, semicolons, or spaces, or Fixed width when fields occupy known character positions. Preview the breaks before finishing and set a Destination with enough empty columns.
The command writes values, not formulas. If the destination already holds data, Excel asks whether to replace it; choose Cancel and pick an empty destination, or work on a copy. The final wizard step also lets you format a column as Text, Date, or General. Use Text for codes with leading zeros.
Method 3: Flash Fill or extraction formulas
Flash Fill recognizes a demonstrated pattern. Type the first result beside the source and choose Data > Flash Fill (Ctrl+E). It is convenient for consistent data, but it produces fixed values and may infer the wrong pattern on exceptions, so review the first, last, blank, and unusual rows.
To pull one piece out of a single-delimiter string, =TEXTBEFORE(A2,", ") returns the part before it and =TEXTAFTER(A2,", ") the part after it. If the delimiter is missing, both return #N/A, which is a useful signal for incomplete rows. Older-compatible formulas can use =LEFT(A2,FIND(",",A2)-1) for the first piece and a MID expression for the rest.
Common mistakes
A space delimiter splits multiword names and addresses into too many pieces, and one export may use a semicolon where another uses a comma. Never finish the wizard without checking its preview and destination. If the source is a real CSV file, importing through Data > From Text/CSV or Power Query is safer than splitting it by hand because a proper importer respects quoted fields. Preserve codes as text when leading zeros matter.
Your turn
In B2, split A2 at the comma and space with TEXTSPLIT. The region lands in B2 and the code spills into C2.
| A | B | C | |
|---|---|---|---|
| 1 | Combined | Region | Code |
| 2 | North, N-14 | ||
| 3 | West, W-08 | ||
| 4 | East, E-22 |
Answer: =TEXTSPLIT(A2,", ")
Worked example
Region and code pairs in A2:A4. The last row has no delimiter, so TEXTBEFORE reports it instead of guessing.
| A | |
|---|---|
| 1 | Combined |
| 2 | North, N-14 |
| 3 | West, W-08 |
| 4 | Central |
| Formula | Result |
|---|---|
=TEXTSPLIT(A2,", ") | "North" |
=TEXTBEFORE(A3,", ") | "West" |
=TEXTAFTER(A2,", ") | "N-14" |
=LEFT(A3,FIND(",",A3)-1) | "West" |
=COUNTA(TEXTSPLIT(A2,", ")) | 2 |
=TEXTBEFORE(A4,", ") | #N/A |
Quick mistake checklist
- Overwriting neighboring columns with the wizard output.
- Choosing Space when spaces can occur inside a field.
- Letting Excel convert codes or ambiguous dates automatically.
Frequently asked questions
Why is TEXTSPLIT returning #SPILL!?
One or more cells in the intended output area are not empty. Clear or move those cells.
Can Text to Columns update when the source changes?
No. It writes fixed values. Use TEXTSPLIT when you need a dynamic result.
Which Excel versions have TEXTSPLIT?
TEXTSPLIT, TEXTBEFORE, and TEXTAFTER need Microsoft 365 or Excel 2024. Earlier versions need Text to Columns or LEFT/FIND/MID formulas.
How do I keep leading zeros?
In the wizard, set that output field to Text, or preformat the destination as Text where appropriate.
Practice the skill
Continue with a checked FormulaCamp lesson: Duplicates and Text to Columns Free
Open the free lesson