
Author
Josef Waples
I'm a data science editor with contributions to research articles in scientific journals. I'm especially interested in linear algebra, statistics, R, and the like.
FAQs
What does the Excel TEXTSPLIT() function do?
TEXTSPLIT() splits a text string from one cell into multiple cells based on one or more delimiters, dividing text across columns, rows, or both. The syntax is =TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [pad_with]), with the last three arguments optional.
How do you split text into rows instead of columns with TEXTSPLIT()?
Leave the col_delimiter argument blank and supply a row_delimiter instead, like =TEXTSPLIT(A1, , ";"). This splits a cell such as "Apple;Banana;Cherry" into separate rows using the semicolon as the delimiter, rather than splitting it into columns.
Can TEXTSPLIT() handle multiple delimiters at once?
Yes. TEXTSPLIT() accepts an array of delimiters, such as =TEXTSPLIT(A4, {",",";"}), which splits text wherever a comma or a semicolon appears. This makes it possible to parse inconsistent data without running separate formulas for each delimiter.
How do you handle empty cells caused by consecutive delimiters in TEXTSPLIT()?
Use the ignore_empty argument, as in =TEXTSPLIT("A,,B", ",", , TRUE). Setting it to TRUE skips empty values created by consecutive delimiters, while FALSE keeps them as blank cells in the result, which is useful for preserving the original data structure.
What other Excel functions work well with TEXTSPLIT()?
TRIM() removes extra spaces from split results, SEQUENCE() dynamically references the split output, and TEXTJOIN() recombines split data back into a single cell when needed. Combining these functions helps handle messy or inconsistent datasets that TEXTSPLIT() alone can't fully clean up.




Excel
TEXTSPLIT()is a function that allows you to split text into multiple cells based on a specified delimiter of your choice. In my experience, it's useful when you need to break apart data that sometimes gets clumped together, like a name, address, and postal code that gets combined all into one cell, for whatever reason. Take a look at the following, which I expect will answer your most pressing questions.Understanding the Excel TEXTSPLIT() Function
The
TEXTSPLIT()function is designed, as its name really tells us, to divide a text string into separate cells. It does this by using one or more delimiters. WhatTEXTSPLIT()then accomplishes is that it makes it extracts specific pieces of information from a single cell and distributes them across columns or, if you want, rows.Here’s the syntax:
text: The text you want to split.col_delimiter: The character(s) that separate columns.row_delimiter: (Optional) The character(s) that separate rows.ignore_empty: (Optional) TRUE to ignore empty values.pad_with: (Optional) Value to use for missing values.Excel TEXTSPLIT() for Basic Splitting
It's best to try it. Let’s look at a simple example of splitting a full name into first and last names. This is also probably the most common case.
Suppose cell A2 contains the name of a well-known English statistician and social reformer: "Florence Nightengale," but you want "Florence" and then "Nightengale".
To split her name into two cells (first name and last name), use:
Excel TEXTSPLIT() for Splitting Text into Rows
You can also split text into rows instead of columns by using the
row_delimiterargument which I listed earlier under the function syntax.So, if cell A3 contains: "Apple;Banana;Cherry" and you want to split each fruit into a separate row, try again with the argument specified.
This formula leaves the column delimiter blank. Just for variety, I made the delimiter a semicolon this time.
Excel TEXTSPLIT() with Multiple Delimiters
Sometimes, your data may use more than one delimiter.
TEXTSPLIT()allows you to specify an array of delimiters.If you look closely, you can see that the next example is the same, except that it has both a comma and a semicolon.
Dealing with Empty Values
If your text contains consecutive delimiters, you might get empty cells in your results. You can use the
ignore_emptyargument to control this behavior.The first row has the
ignore_emptyargument asTRUE; in the second row, it's set toFALSE, and you can see the difference.Tips for More Advanced Use
Here are some additional tips for using
TEXTSPLIT()in more complex scenarios:Combine with TRIM() to remove extra spaces from results.
Use SEQUENCE() to dynamically reference split results.
Pair with TEXTJOIN() to recombine split data if that's what you need.
Sometimes you have to combine multiple functions if your datasets are especially messy or inconsistent.
Conclusion
The
TEXTSPLIT()function in Excel is a useful tool for breaking apart text into multiple cells, whether by columns or rows.Keep learning Excel with us! We have some great courses such as Financial Modeling in Excel and Advanced Excel Functions.