Excel's TEXTSPLIT function splits a text string into separate cells or rows using a delimiter you choose. Type =TEXTSPLIT(A2, " ") in an empty cell, drag or spill it, and every word in A2 lands in its own cell. It is the modern replacement for the old Text to Columns wizard because the result updates automatically when the source text changes. The catch: TEXTSPLIT is only available in Microsoft 365 and newer Excel versions (Excel 2021 and later on Windows, Mac, and the web app at Microsoft 365). If you use Excel 2019 or older, you will get a #NAME? error and must use Text to Columns instead, which is covered at the end.
What You'll Need
- A Microsoft 365 subscription or Excel 2021 or newer. The function does not exist in older releases.
- A column of text you want to break apart, ideally with a consistent delimiter such as a space, comma, semicolon, slash or pipe character.
- Empty cells to the right of, or below, your formula cell. The result "spills" into neighbouring cells, so blocked cells will cause a #SPILL! error.
- Basic familiarity with putting a formula in a cell and pressing Enter or Return.
Menu names and the function's arguments can differ slightly between desktop, Mac and the web version, but the syntax below is the same across all of them.
Step-by-Step
- Check your version first. In any empty cell, type
=TEXTSPLIT("a,b", ",")and press Enter. If you seeaandbin two cells, you are ready. If you see #NAME?, your Excel version does not support the function and you should use Text to Columns instead (see the last step). - Set up a clean destination. Click the cell where you want the first piece of text to appear. Leave empty cells to its right (for separate columns) or below it (for separate rows). Clear any old data in those cells first.
- Write the basic formula. The syntax is
=TEXTSPLIT(text, col_delimiter). For example, with the full name "Ana Ruiz" in A2, type=TEXTSPLIT(A2, " ")and press Enter. Excel fills the two cells to the right with "Ana" and "Ruiz". - Use a real cell reference, not pasted values. Point the first argument at your source cell, like A2, rather than typing the text inside quotes. This way the output updates automatically whenever the source changes.
- Split into rows instead of columns when you need to. Add the third argument,
row_delimiter. If cell A2 holds "apples;pears;plums" and you want a vertical list, type=TEXTSPLIT(A2, , ";")with the middle argument left empty. Note the two commas - they keep the column position blank. If you supply both delimiters, TEXTSPLIT splits by columns first, then by rows within each column. - Handle multiple delimiters. Wrap the delimiters in curly braces to split on any of them. For text like "Smith, John / Doe", use
=TEXTSPLIT(A2, {",", "/"})to break on both the comma and the slash. - Fill in blanks gracefully. By default, empty pieces between delimiters produce zero. Add the fourth argument,
ignore_empty, set to TRUE (or 1) to skip them:=TEXTSPLIT(A2, ",", , TRUE). This is useful when a row has a double comma or a trailing comma. - Transform the result in place. TEXTSPLIT can optionally uppercase, lowercase or pad the text. For example,
=TEXTSPLIT(A2, " ", , , 3)applies the built-in transformation code for proper case, and the sixth argument pads the output to a fixed width. These are optional; most users only need the first two or three arguments. - Copy the formula down. Click the cell with the formula and drag the fill handle down the column. Each row's result spills into the cells to its right, so make sure that whole area is empty before you drag. Because the output is dynamic, dragging is safe - the spilled range expands or contracts as the data changes.
- Convert to static values only if needed. If you must freeze the split results - for example, before sharing with someone on an older Excel version - select the spilled range, press Ctrl+C (Cmd+C on Mac), then use Paste Special > Values. Be aware that the formulas are gone after that, so future edits to the source will not update the split text.
- Fall back to Text to Columns on older versions. Select the column of text, go to the Data tab, click Text to Columns, choose Delimited, click Next, tick your delimiter (Space, Comma, Tab, Semicolon, or Other with your own character), click Next, set the destination cell and click Finish. This method is not dynamic - you must repeat it whenever the data changes.
Common Mistakes
- Blocking the spill range. If any cell the result needs to fill already contains data, Excel shows #SPILL!. Clear the cells to the right (or below) and the result appears instantly.
- Forgetting the quotes around the delimiter. Writing
=TEXTSPLIT(A2, , )without delimiters does nothing useful. Delimiters must be text in double quotes, such as "," or " ". - Confusing rows and columns. A delimiter in the second position splits across columns (left to right). To split downwards, the delimiter belongs in the third position with the second left blank.
- Using it in old Excel. Excel 2019 and earlier return #NAME? for TEXTSPLIT. That is not a typo in your formula - it is a missing feature.
- Editing inside a spilled range. You cannot type over a cell that is part of a spilled result; you get a #SPILL! error or a warning. Edit the original formula cell instead.
- Delimiter mismatch. Text separated by semicolons will not split on a comma. Look closely at the source data and match the exact character, including whether it is a regular space, a non-breaking space or a tab.
Tips
- Use
=TEXTSPLIT(A2, " ")as a quick way to separate first and last names, but remember that middle names or suffixes create extra pieces - check a few rows before relying on the column positions. - Combine TEXTSPLIT with other functions. For example,
=INDEX(TEXTSPLIT(A2, ","), 2)pulls out just the second piece without spilling the rest. - For dates or numbers written as text, wrap the result in VALUE or DATEVALUE to convert the pieces into real numbers.
- Keep the original column intact. Splitting into new columns next to it lets you compare results and catch mismatched delimiters.
- When a source cell contains both a comma and a space after it (", "), splitting on the comma leaves a leading space in each piece. Use the TRIM function around the result or split on both characters at once.
- Name your delimiter character once in a helper cell and reference it, so you can change the split rule for every row in one edit.
Troubleshooting
If you see #NAME?: your Excel version does not include the function. Confirm the version via File > Account (the exact wording varies by version) and update to Microsoft 365, or switch to Text to Columns.
If you see #SPILL!: click the error, and Excel highlights the blocking cells. Delete or move their contents and the formula resolves itself. Check both the right side and the area below, depending on which direction you are splitting.
If the result is a single cell instead of many: the delimiter probably does not match the text. Inspect the source for stray spaces, non-breaking spaces or different punctuation. Try copying a delimiter character straight from the source into your formula's quotes.
If pieces are in the wrong order: you likely used the row delimiter where you meant the column delimiter, or swapped them. Swap the arguments back.
If a whole row shifts after an edit: this is normal spill behaviour - the range resizes to fit new data. Reserve extra empty columns next to the formula so a longer result does not run into another table.
If nothing recalculates: check that calculation is set to automatic (Formulas tab > Calculation Options > Automatic).
Frequently Asked Questions
Which Excel versions include TEXTSPLIT?
Microsoft 365 and Excel 2021 or newer, including the Windows, Mac and web versions available with a Microsoft 365 subscription. Older perpetual versions such as Excel 2019 and 2016 do not have it.
Can TEXTSPLIT split on more than one delimiter?
Yes. Put the delimiters in curly braces, for example {",", ";"}, and the function splits wherever it finds either one.
Does TEXTSPLIT update automatically?
Yes, as long as the first argument points at a cell. If you paste values instead, or convert the spill to static values, it will not update.
What is the difference between TEXTSPLIT and Text to Columns?
Text to Columns is a one-time wizard that overwrites data with static results. TEXTSPLIT is a formula that spills results into neighbouring empty cells and refreshes whenever the source text changes.
Can I split text into rows instead of columns?
Yes. Leave the column delimiter argument empty and supply the delimiter in the third position, such as =TEXTSPLIT(A2, , ";").
Why does my split leave leading spaces?
The delimiter includes a comma but not the space after it. Either add a space to the delimiter set and ignore empty pieces, or wrap the output in TRIM to clean up.