Split Text into Columns with TEXTSPLIT

Excel Formulas › Dynamic Arrays

365TEXTSPLIT

TEXTSPLIT breaks one cell into many — spilling across columns (and/or down rows) by a delimiter. It’s the formula version of Text to Columns, but live and automatic.


Quick formula: split a comma-separated cell across columns:
=TEXTSPLIT(A2, ",")
The result spills into adjacent columns, one piece per delimiter. Add a row delimiter to split a whole block into a grid.

Functions used (tap for the full reference guide):

The example

A CSV-style cell split into columns.

ABCD
1Input123
2Ann,Sales,EastAnnSalesEast

The formula

Spill the pieces across columns:

=TEXTSPLIT(A2, ",") // one column per delimiter

How it works

TEXTSPLIT separates on a delimiter and spills:

  1. The 2nd argument is the column delimiter — the result spills across columns.
  2. A 3rd argument adds a row delimiter, splitting into a 2-D grid (rows and columns at once).
  3. Pass an array of delimiters {",",";"} to split on several characters.
  4. Set pad_with to fill ragged rows, or ignore_empty to skip blank pieces between consecutive delimiters.

Live, unlike Text to Columns. TEXTSPLIT recalculates when the source changes — Text to Columns is a one-time paste. For splitting down into rows instead, use the row-delimiter argument or see the split-to-rows recipe.

Try it: interactive demo

Live demo

Text + delimiter → columns.

Variations

Split into a grid

Columns and rows:

=TEXTSPLIT(A2, ",", ";")

Multiple delimiters

Array of separators:

=TEXTSPLIT(A2, {",",";"})

Ignore empties

Skip blanks:

=TEXTSPLIT(A2, ",", , TRUE)

Pitfalls & errors

365 only. Older Excel uses Text to Columns or MID/FIND.

Spill needs room. The result spills into neighboring cells — if they’re occupied you get #SPILL!.

Consecutive delimiters. Two delimiters in a row create a blank cell unless you set ignore_empty.

Practice workbook

📊
Download the free Split Text into Columns with TEXTSPLIT practice workbook
TEXTSPLIT examples (formula text + result) with grid, multi-delimiter, and ignore-empty variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I split text into columns with a formula in Excel?
Use =TEXTSPLIT(A2, ",") to spill the pieces across columns by the delimiter. It recalculates live, unlike Text to Columns. Requires Excel 365.
How do I split into both rows and columns?
Add a row delimiter: =TEXTSPLIT(A2, columnDelim, rowDelim) creates a 2-D grid.
Why do I get a #SPILL! error?
TEXTSPLIT needs empty cells to spill into. Clear the neighboring cells or move the formula.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Split to rows · Split text · TEXTBEFORE & TEXTAFTER

Function references: TEXTSPLIT