Excel TEXTSPLIT Function: Split Text by Delimiters with Examples

Excel TEXTSPLIT function tutorial featured image

What is TEXTSPLIT in Excel?

The TEXTSPLIT function divides the contents of a text cell into separate columns, rows or both using delimiters. It is the formula-based counterpart to Excel’s Text to Columns command and works dynamically when your source cell changes. TEXTSPLIT is available in Microsoft 365 and supported current Excel releases; it is not available in many older perpetual editions.

TEXTSPLIT syntax

=TEXTSPLIT(text,col_delimiter,[row_delimiter],[ignore_empty],[match_mode],[pad_with])

text is what you want to split. col_delimiter separates the result into columns; row_delimiter separates it into rows. The optional arguments control empty results, case-sensitive matching and filling uneven output rows.

Example 1: Split a full name into columns

If A2 contains Asha Shah:

=TEXTSPLIT(A2," ")

Result: Asha and Shah spill into two neighboring cells across a row. Because the delimiter is a space, names containing multiple words create additional columns.

Example 2: Split comma-separated products

If A2 contains Pen,Notebook,Eraser:

=TEXTSPLIT(A2,",")

The three product names spill across three columns. If the text includes a space after each comma, you may use TRIM(TEXTSPLIT(A2,",")) to remove extra spaces from the resulting pieces.

Example 3: Split data into rows

Suppose A2 contains Red;Green;Blue. To return one value per row rather than per column:

=TEXTSPLIT(A2,,";")

Leaving the col_delimiter blank tells Excel that the semicolon should be used as the row delimiter. Results spill downward.

Example 4: Split with more than one delimiter

If A2 contains East,West;North:

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

Both commas and semicolons act as column delimiters. Excel returns East, West and North in separate cells.

Example 5: Keep or ignore empty pieces

With Red,,Blue in A2, compare:

=TEXTSPLIT(A2,",",,FALSE)

This keeps the empty value between the commas.

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

This removes the empty piece and returns just Red and Blue. The fourth argument is ignore_empty.

Example 6: Split a small two-dimensional list

Suppose A2 contains East,100;West,200:

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

Result: a two-row, two-column spill. Row 1 contains East and 100; row 2 contains West and 200.

TEXTSPLIT versus Text to Columns

TEXTSPLIT recalculates as the source changes. The Data tab’s Text to Columns command performs a one-time split in the selected cells. TEXTSPLIT is helpful in dashboards and reusable analysis; Text to Columns can work in older Excel versions without dynamic arrays.

Common TEXTSPLIT problems

  • #SPILL!: clear occupied cells in the spill area, or move the formula where there is space.
  • #NAME?: verify that your Excel version supports TEXTSPLIT.
  • Wrong orientation: use the second argument for columns or the third for rows.
  • Extra spaces: combine with TRIM where needed.
  • Uneven rows: the pad_with argument can control missing values; the default may be #N/A.

Frequently asked questions

Does TEXTSPLIT change the original cell?

No. It returns results to neighboring spill cells; the source text stays where it is.

Can I split by a word rather than a character?

Yes. The delimiter can be multiple characters, such as " - ".

Can TEXTSPLIT work in Excel 2019?

TEXTSPLIT is not available in standalone Excel 2019. For older installations, use Text to Columns or Power Query.

Practice exercise

Enter Mumbai|Pune|Nagpur in A2 and split it into columns. Then split the same text into rows. Finally try a two-dimensional list where commas separate fields and semicolons separate records.

Related Excel lessons

Explore Module 3: Excel Functions and the TEXTJOIN tutorial to learn how to combine split values back into one cell.

Official Excel documentation

Check the Microsoft Excel help center for version availability and updated function guidance.