Yes, there is a split function in Excel called TEXTSPLIT, though its availability depends on your version of the software. It is available for users of Microsoft 365 and Excel for the Web, allowing you to divide a text string into multiple cells based on a specific delimiter.
Understanding the TEXTSPLIT Function
The TEXTSPLIT function is a dynamic array function, meaning it doesn't just return a single value to one cell; it "spills" the results into adjacent cells automatically. This is a significant upgrade over older methods that required complex combinations of LEFT, RIGHT, MID, FIND, and LEN functions to isolate a single piece of data from a string.
The basic syntax for the function is =TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with]). While it looks complex, most users only need the first two arguments to get the job done. The text is the cell or string you want to break apart, and the col_delimiter is the character (like a comma, space, or semicolon) that tells Excel where to make the cut.
For example, if cell A1 contains the text "Apple, Orange, Banana" and you enter =TEXTSPLIT(A1, ", "), Excel will place "Apple" in the current cell, "Orange" in the cell to the right, and "Banana" in the cell after that. Because it is a dynamic array, if you change the original text in A1, all the split values update instantly.
How to Use TEXTSPLIT Step-by-Step
Depending on your data structure, you can use TEXTSPLIT for simple lists or complex grids. Note that menu labels and function behavior may vary slightly based on your region or the specific version of Microsoft 365 you are using.
- Select the empty cell where you want the first piece of the split data to appear. Ensure there are empty cells to the right and below, as the function will return a #SPILL! error if existing data blocks its path.
- Type
=TEXTSPLIT(and select the cell containing the text you wish to divide. - Type a comma, then enter your delimiter inside double quotation marks. For instance, if your data is separated by a pipe symbol, use
"|". - Close the parenthesis and press Enter.
- If you need the data to split into rows instead of columns, leave the
col_delimiterblank by adding an extra comma and put your delimiter in therow_delimiterargument:=TEXTSPLIT(A1, , ",").
Alternative: The Text to Columns Feature
If you are using an older version of Excel (such as Excel 2016, 2019, or 2021) that does not support the TEXTSPLIT function, the most reliable alternative is the Text to Columns wizard. Unlike a function, this is a static tool; it does not update automatically if the source data changes.
To use Text to Columns, follow these steps:
- Highlight the column or range of cells containing the text you want to split.
- Go to the Data tab on the top ribbon.
- Select the Text to Columns button.
- Choose "Delimited" and click Next. This is used when characters such as commas or tabs separate your data.
- Check the box for the specific delimiter used in your data (e.g., Tab, Semicolon, Comma, Space) or type a custom character in the "Other" box.
- Click Next to choose the destination cell. By default, Excel overwrites the original column, so if you want to keep the original data, change the destination to a different cell.
- Click Finish.
Advanced Splitting with Multiple Delimiters
One of the most powerful aspects of the TEXTSPLIT function is its ability to handle multiple different delimiters at once. In real-world data, you often encounter "dirty" data where some entries are separated by commas and others by semicolons or slashes.
To handle this, you can use an array constant within the delimiter argument. By enclosing multiple delimiters in curly braces {}, you tell Excel to split the text whenever it encounters any one of those characters. For example, if your cell contains "Red,Blue;Green/Yellow", you would use the formula: =TEXTSPLIT(A1, {",", ";", "/"}).
This eliminates the need to run multiple find-and-replace operations to standardize your delimiters before splitting. It also allows for cleaner data cleaning workflows when importing CSV files from different software sources that may use inconsistent formatting.
Common Problems and Troubleshooting
Even with a straightforward function, users often encounter a few common hurdles when splitting text in Excel.
- The #SPILL! Error: This is the most common issue with TEXTSPLIT. It occurs when there is already data in the cells where Excel is trying to place the split results. To fix this, clear the cells to the right and below the formula cell.
- Trailing or Leading Spaces: Often, a delimiter like a comma is followed by a space (e.g., "City, State"). If you split only by the comma, the resulting "State" cell will have a leading space, which can break VLOOKUP or MATCH functions. To solve this, either include the space in your delimiter
", "or wrap the TEXTSPLIT function inside the TRIM function:=TRIM(TEXTSPLIT(A1, ",")). - Empty Cells: If your data has consecutive delimiters (e.g., "Apple,,Banana"), TEXTSPLIT will create an empty cell in the middle. If you want to ignore these, set the
ignore_emptyargument to TRUE:=TEXTSPLIT(A1, ",", , TRUE). - Data Type Conversion: Sometimes splitting a string that looks like a date or a number results in a text format that Excel doesn't recognize as a value. You may need to multiply the result by 1 or use the VALUE function to convert it back to a number.
Comparing TEXTSPLIT vs. Flash Fill
For users who prefer not to use formulas, Flash Fill is a powerful AI-driven alternative. Flash Fill recognizes patterns as you type and fills the rest of the column for you. While it is faster for one-time tasks, it lacks the dynamic nature of TEXTSPLIT.
To use Flash Fill, you simply type the desired result for the first one or two rows in the adjacent column. For example, if Column A has "John Doe", you type "John" in Column B. As you start typing the second name, Excel will suggest a greyed-out list of all first names. Pressing Enter accepts the suggestion.
The main difference is that Flash Fill is a "snapshot." If you change "John Doe" to "Jane Doe" in Column A, the "John" in Column B will not change. TEXTSPLIT, however, is linked to the source cell and will update automatically, making it the superior choice for dashboards and templates.
Frequently Asked Questions
Can I split text into rows instead of columns?
Yes. In the TEXTSPLIT function, the second argument is for columns and the third is for rows. To split into rows, leave the second argument empty by typing two commas and put your delimiter in the third argument. This is useful for turning a comma-separated list into a vertical table.
Why is my TEXTSPLIT function not appearing in Excel?
The TEXTSPLIT function is only available in Microsoft 365 and Excel for the Web. If you are using a perpetual license version like Excel 2019 or 2021, the function does not exist. You should use the "Text to Columns" feature under the Data tab or a combination of LEFT and FIND functions instead.
How do I split a cell by a specific number of characters?
TEXTSPLIT is designed for delimiters, not character counts. If you need to split a cell every 5 characters, you cannot use TEXTSPLIT. Instead, use the MID function combined with a sequence: =MID(A1, SEQUENCE(ROUNDUP(LEN(A1)/5,0)*0,1,5), 5). This tells Excel to extract 5 characters at a time starting from different positions.
Can I use a cell reference as the delimiter?
Yes, you can. Instead of typing the delimiter in quotes (like ","), you can click on a cell that contains the delimiter character. This allows you to change the delimiter for your entire dataset just by changing the value in one single cell, making your spreadsheet much more flexible.
Does TEXTSPLIT work on Mac?
Yes, TEXTSPLIT is available for Mac users, provided they have a Microsoft 365 subscription. The functionality and syntax are identical to the Windows version, though the interface for accessing the ribbon may look slightly different.