TEXTSPLIT Function
Splits text into columns (and rows) at the delimiters you choose.
Category
Text
Available in
Microsoft 365, Excel 2024
Returns
An array that spills
Overview
TEXTSPLIT is Text to Columns as a formula. Give it text and a delimiter and the pieces spill across the row.
Add a row delimiter and it builds a whole grid. Because it's a formula, the split updates when the source text changes.
Syntax
Arguments
| Argument | Required? | What it does |
|---|---|---|
| text | Yes | The text to split. |
| col_delimiter | Yes | Where to split into columns, such as ",". Use an array like {",",";"} for several. |
| row_delimiter | Optional | Where to split into rows. |
| ignore_empty | Optional | TRUE skips empty pieces from doubled delimiters. Default FALSE. |
| match_mode | Optional | 1 ignores case when matching delimiters. Default 0 (case-sensitive). |
| pad_with | Optional | What to fill gaps with in uneven grids. Default #N/A. |
Examples
Example 1 — Splitting an export line
Each line of a Northstar export is name, region and sales separated by commas.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Raw line | Name | Region | Sales |
| 2 | Ana Lopez,West,620 | Ana Lopez | West | 620 |
| 3 | Ben Cho,East,480 | Ben Cho | East | 480 |
The pieces are text — wrap the formula in VALUE or use -- if you need to add up the sales.
Example 2 — Building a grid
Semicolons separate records and commas separate fields.
| A | B | C | |
|---|---|---|---|
| 1 | Raw | Name | Region |
| 2 | Ana,West;Ben,East | Ana | West |
| 3 | Ben | East |
Common mistakes
- #SPILL! Something is in the way of the results. Clear the cells to the right (and below, for row splits).
Notes
- Related functions: TEXTBEFORE, TEXTAFTER, TEXTJOIN, VALUE.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.