Get the TEXTSPLIT Practice Workbook
All the examples from the video in one file. Practice splitting messy text with mixed delimiters, skipping blank cells, splitting into rows and columns, and combining TEXTSPLIT with TRIM, SORT and TEXTJOIN.
What Does TEXTSPLIT Do in Excel?
Unlike the “Text to Columns” tool, TEXTSPLIT is dynamic. It updates automatically when your data changes, saving you time and effort.
Common Issues Solved by TEXTSPLIT
- Mixed delimiters (commas, semicolons, colons)
- Varying number of items per row
- Delimiters with and without spaces
Consider the example below. It features a wide variety of data with different delimiters in each row and empty spaces.

TEXTSPLIT can handle all these issues with ease. By using this function, you can split text into separate cells quickly and accurately.
TEXTSPLIT Syntax and Arguments
The Excel TEXTSPLIT function has the following syntax:
=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])The arguments for TEXTSPLIT are:
- text: the text you want to split. Required.
- col_delimiter: the character or characters that split the text into columns. Required.
- row_delimiter: the character or characters that split the text into rows. Optional.
- ignore_empty:
TRUEskips empty values from consecutive delimiters. The default isFALSE, which creates an empty cell. Optional. - match_mode:
1makes the delimiter match ignore upper and lower case. The default is0, which is case-sensitive. Optional. - pad_with: the value that fills missing cells when rows have different lengths. The default is
#N/A. Optional.
Let’s look at some examples of how to split strings in Excel with the TEXTSPLIT function.
How to Split Text by a Single Delimiter
Let’s use TEXTSPLIT to split listed skills into different cells. Here’s how to do it with an example:

Basic Syntax
=TEXTSPLIT(A2, ",")- A2 is the cell with the combined data.
- “,” is the delimiter.

How to Remove Extra Spaces After Splitting
The spaces after the commas stay, causing leading spaces in the split text.

Two ways to fix it:
- Combining with the Excel TRIM Function to remove any extra spaces:
=TRIM(TEXTSPLIT(A2, ","))- Modifying Delimiter:
=TEXTSPLIT(A2, ", ")This defines the delimiter as a comma followed by a space.

These methods help you cleanly split your data without unwanted spaces.
How to Split Text Using Multiple Delimiters
Real-world data rarely uses one consistent delimiter. You’ll see commas in some rows, semicolons in others, and colons mixed in. TEXTSPLIT handles all of them in a single formula.
Pass an array of delimiters in curly braces:
=TEXTSPLIT(A2, {",", ":", ";"})Each delimiter is enclosed in double quotes and separated by commas. The whole list sits inside curly braces.

Excel splits the text wherever it finds any delimiter in your list. A delimiter can be one character or several, like a comma followed by a space.
Add Spaces to Multi-Delimiter Lists
If your delimiters are followed by spaces (like “, ” instead of just “,”), include the space in each delimiter:
=TEXTSPLIT(A2, {", ", ": ", "; "})This avoids leading spaces in the result without needing TRIM.
Tip: Plan for Future Variations
Add delimiters you don’t currently see in your data but might appear later. The function ignores delimiters it doesn’t find.
Adding a pipe or a tab character as a safety net costs nothing and saves a formula rewrite later. Skip characters that can appear inside your values, like the slash in a date.
For tab-separated text, use CHAR(9) as the delimiter. For line breaks (Alt+Enter), use CHAR(10).
How to Skip Blank Cells in TEXTSPLIT
Let’s split a list of names into first and last names.

The problem is the titles “Mr.” and “Ms.” in the data.

Use Titles as Delimiters
Let’s use the titles themselves as delimiters to separate the text.
=TEXTSPLIT(A2, {" ", "Mr. ", "Ms. "})
This removes the titles, but leaves an empty cell where each title was.
Set ignore_empty to TRUE
Add the ignore_empty argument in the TEXTSPLIT function to avoid this issue:
=TEXTSPLIT(A2, {" ", "Mr. ", "Ms. "}, , TRUE)
Now the empty cells are gone and you get clean first and last names.
How to Split Text Into Both Columns and Rows
Splitting text into multiple rows and columns is easy with Excel’s TEXTSPLIT function.
Example:
We have data in a single cell that we need to split into a name column and a salary column.

Use a Column and a Row Delimiter
=TEXTSPLIT(A2, "=", ", ")- The equals sign ‘=’ separates names and salaries into columns.
- The comma-space ‘, ‘ splits the data into rows.

How to Sort Split Text and Combine It Back
We have the list from earlier of application skills in a combined, unsorted manner, and we wish to have them in a combined, sorted manner.

There isn’t a single function solution to produce this result, but we can achieve the goal in three simple steps:
- Split the text into separate cells using the TEXTSPLIT
- Sort the separated results using the SORT
- Recombine the individual elements back into a single cell using the TEXTJOIN
Step 1: Split the Text
We’ll start by using the Excel TEXTSPLIT function to split the skills into cells.
=TEXTSPLIT(A2, ",")NOTE: I’ve filled the formula down to the adjacent rows to apply the formula to the remainder of the list. I’ll be doing this for the following steps as well.

Because some (not all) of the comma delimiters have spaces following them, we’ll slip in a little TRIM function to remove the extraneous spaces.

Step 2: Sort the Split Values
We can easily sort the skills by nesting the TRIM/TEXTSPLIT functions inside a SORT function.
=SORT(TRIM(TEXTSPLIT(A2, ",")), , , TRUE)
In the SORT function, we had to skip the 2nd and 3rd arguments ([sort_index] and [sort_order]) to be able to define the 4th argument, [by_col]. The TRUE tells the SORT function to sort the data by columns as opposed to by rows which is the default behavior.
Step 3: Join the Results into One Cell
The final step is to use a TEXTJOIN function to combine the separate cells into a single cell.
=TEXTJOIN(", ", TRUE, SORT(TRIM(TEXTSPLIT(A2, ",")), , , TRUE))
The TEXTJOIN function uses a comma-space as the delimiter, and “TRUE” tells it to ignore empty cells. Since there were no empty cells, “TRUE” or “FALSE” gives the same result.
TEXTSPLIT vs. Text to Columns vs. Power Query
TEXTSPLIT, Text to Columns, and Power Query all split delimited text, but they work differently. Pick the right one for your situation.
| Feature | TEXTSPLIT | Text to Columns | Power Query |
|---|---|---|---|
| Dynamic (updates when source changes) | Yes | No, static | Yes (on refresh) |
| Multiple delimiters at once | Yes | One only | Yes |
| Splits into rows and columns | Yes | Columns only | Yes |
| Excel version required | Microsoft 365 / Excel for the web | Any version | Excel 2016+ |
| Best for | Live, formula-driven splits | One-time quick splits | Repeatable, multi-step transformations |
| Learning curve | Low | Lowest | Higher |
Quick rule: use TEXTSPLIT for any split that needs to update automatically. Use Text to Columns for a one-time cleanup. Use Power Query when the split is part of a larger data transformation. See our Power Query guide for the full workflow.
TEXTSPLIT vs. TEXTBEFORE and TEXTAFTER: Which Should You Use?
TEXTBEFORE and TEXTAFTER return a single piece of a string before or after a delimiter. TEXTSPLIT returns all pieces at once.
Use TEXTBEFORE/TEXTAFTER when you need just one part (the first name from a full name, the file extension from a path). Use TEXTSPLIT when you need every piece in separate cells.
For more on the surgical extractors, see our guide on the TEXTBEFORE and TEXTAFTER functions.
Which Excel Versions Support TEXTSPLIT?
| Version | Supported? |
|---|---|
| Excel for Microsoft 365 (Windows & Mac) | ✅ Yes |
| Excel for the web | ✅ Yes |
| Excel 2024 (one-time purchase) | ✅ Yes |
| Excel 2021 (one-time purchase) | ❌ No |
| Excel 2019 and earlier | ❌ No |
| Excel for iPad / iPhone / Android | ✅ Yes (with Microsoft 365 subscription) |
If you see a #NAME? error when typing =TEXTSPLIT, your Excel version does not include the function.
TEXTSPLIT reached Microsoft 365 Insiders in March 2022 and all Microsoft 365 subscribers later that year. Excel 2024 is the first one-time-purchase version that includes it.
Troubleshooting: Common TEXTSPLIT Errors
#NAME? error: your Excel version does not have TEXTSPLIT. You need Excel for Microsoft 365, Excel 2024 or Excel for the web.
#N/A in some cells: you split into rows and columns, and some rows have fewer items than others. Excel fills the gaps with #N/A. Add the sixth argument, pad_with: =TEXTSPLIT(A2, "=", ", ", , , "")
#SPILL! error: the cells where TEXTSPLIT wants to spill its results are not empty. Clear the cells below or to the right of your formula.
Leading or trailing spaces in the result: wrap the formula in TRIM, like =TRIM(TEXTSPLIT(A2, ",")), or include the space in the delimiter: =TEXTSPLIT(A2, ", ")
Curly quotes break the formula: if you copy a formula from a web page or a document and get an error, the quotes may be curly instead of straight. Retype the quotes in the formula bar.
Want to master TEXTSPLIT and the other modern Excel functions that came with Microsoft 365? Our Master Excel’s Essential Modern Functions course covers FILTER, SORT, UNIQUE, XLOOKUP, SEQUENCE, and the entire dynamic-array family. Build reports in minutes instead of hours.
Featured Course
Master Excel’s Essential Modern Functions

Download the TEXTSPLIT Practice Workbook
Download the TEXTSPLIT Workbook
Every TEXTSPLIT example from this tutorial in one ready-to-use file.
Frequently Asked Questions
What does TEXTSPLIT do in Excel?
TEXTSPLIT splits the text in one cell into separate cells, across columns, down rows, or both, at the delimiters you choose. It works like Text to Columns, but as a formula, so the results update when the source text changes.
Can TEXTSPLIT split by more than one delimiter?
Yes. Put the delimiters inside curly braces as an array constant, for example a comma, a semicolon and a colon. TEXTSPLIT splits at every one it finds. Delimiters that are not in the text are simply ignored.
How do I stop TEXTSPLIT from creating blank cells?
Set the fourth argument, ignore_empty, to TRUE. By default it is FALSE, so two delimiters next to each other, or a delimiter at the start of the text, create an empty cell.
Why does TEXTSPLIT return #N/A in some cells?
This happens when you split into rows and columns and the rows have a different number of items. Excel fills the short rows with #N/A. Use the sixth argument, pad_with, to fill them with an empty text string or another value, or wrap the formula in IFNA.
Does TEXTSPLIT work with line breaks?
Yes. Use CHAR(10) as the delimiter, for example =TEXTSPLIT(A2, CHAR(10)). This splits a cell at every line break you added with Alt+Enter.
Which Excel versions have TEXTSPLIT?
TEXTSPLIT works in Excel for Microsoft 365 on Windows and Mac, Excel 2024 and Excel for the web. Excel 2021, Excel 2019 and older versions do not have it and show a #NAME? error.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.








