How to Use the TEXTSPLIT Function in Microsoft Excel to Separate Delimited Text

Splitting text strings containing commas, hyphens, slashes, or custom delimiters historically required relying on Excel’s static ‘Text to Columns’ wizard or writing cumbersome formulas combining LEFT, MID, SEARCH, and LEN. With the modern dynamic array engine in Microsoft 365 and Excel 2024, Microsoft introduced the TEXTSPLIT function, providing an elegant, formula-based method to parse text strings across columns, rows, or both simultaneously.

Because TEXTSPLIT is fully dynamic, formulas recalculate automatically whenever underlying source data updates. In this guide, we explore the syntax of TEXTSPLIT, demonstrate column and row splitting, handle multiple distinct delimiters, and examine practical real-world data-cleansing examples.

Syntax and Arguments of TEXTSPLIT

The TEXTSPLIT function contains two essential parameters alongside four optional arguments for fine-grained parsing:

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

Here is what each parameter governs:

Argument Required / Optional Description
text Required The source text string or cell reference you wish to split.
col_delimiter Required (or optional if row_delimiter supplied) The character or substring used to split text across columns.
row_delimiter Optional The delimiter used to split text downwards across consecutive rows.
ignore_empty Optional TRUE ignores consecutive delimiters; FALSE (default) creates an empty cell.
match_mode Optional 0 (default) for case-sensitive match; 1 for case-insensitive match.
pad_with Optional Value to populate missing elements when splitting into 2D tables (defaults to #N/A).

When managing complex spreadsheets with multiple transformation stages, combining TEXTSPLIT with the LET function in Microsoft Excel enhances calculation performance and makes nested formulas easier to read.

Splitting Text Across Columns Horizontally

To split a full name or a comma-separated address horizontally across adjacent columns, provide the text reference and the column delimiter:

=TEXTSPLIT(A2, ", ")

If cell A2 contains London, Manchester, Birmingham, Leeds, the formula spills the four municipal names across columns B2:E2 automatically. There is no need to drag fill handles or specify fixed column limits.

Splitting Text Downwards Across Rows Vertically

If you want incoming delimited data to expand vertically into a tidy column rather than extending across your worksheet horizontally, omit the col_delimiter and specify the row_delimiter:

=TEXTSPLIT(A2, , ";")

Notice the double comma syntax (, ,), which skips the column delimiter argument and instructs Excel to spill each segment into a new row directly below the formula cell.

Handling Multiple Different Delimiters Simultaneously

Real-world datasets frequently contain inconsistent delimiters, such as text separated by commas, slashes, and ampersands within the same cell. You can pass an array constant containing multiple delimiters inside curly brackets:

=TEXTSPLIT(A2, {",", "/", "&", "-"})

Excel evaluates each delimiter listed in the array and splits the string whenever any of those characters appear, eliminating tedious pre-cleaning steps.

Splitting into a Two-Dimensional Grid (Rows and Columns)

One of TEXTSPLIT‘s most remarkable capabilities is transforming key-value pairs or structured logs into a complete two-dimensional matrix in a single step:

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

Consider a cell containing configuration data formatted as: User=Alice;Role=Manager;Dept=Finance. By specifying "=" as the column delimiter and ";" as the row delimiter, TEXTSPLIT renders a neat two-column, three-row table directly on your sheet:

Column A Column B
User Alice
Role Manager
Dept Finance

If you only need to extract specific rows or columns from this generated array, you can pipe the output directly into CHOOSEROWS and CHOOSECOLS functions in Excel.

Frequently Asked Questions

Why does TEXTSPLIT return a #SPILL! error?

A #SPILL! error indicates that the range of cells where Excel intends to place the split output already contains text, numbers, or formatting. Clear any obstructing values from the cells to the right or below your formula to resolve the error.

Can TEXTSPLIT handle strings with trailing or double delimiters?

Yes. By setting the fourth argument ignore_empty to TRUE (e.g., =TEXTSPLIT(A2, ",", , TRUE)), Excel automatically suppresses empty items caused by consecutive delimiters such as apple,,banana.

Is TEXTSPLIT available in older versions of Excel like 2016 or 2019?

No. TEXTSPLIT is exclusive to Microsoft 365, Excel for the web, and standalone Excel 2024. In older versions, you must use legacy formula combinations or the Power Query ‘Split Column’ feature.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.