ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Text
  3. TEXTSPLIT in Excel: Split Text Into Columns

TEXTSPLIT in Excel: Split Text Into Columns

By ExcelReady Team·Updated October 30, 2026·7 min read

The short answer

TEXTSPLIT splits one cell into several cells at a delimiter you choose. =TEXTSPLIT(A2,",") puts each comma-separated item in its own column, spilling to the right. Add a row delimiter to split into rows as well, and TRUE as the fourth argument to skip empty items. TEXTSPLIT needs Microsoft 365, Excel 2024 or Excel for the web.

Key takeaways

  • =TEXTSPLIT(text, col_delimiter) splits text across columns at every delimiter.
  • Use the third argument, row_delimiter, to split down rows instead of (or as well as) across columns.
  • Pass several delimiters at once in braces, like {",",";"}.
  • Set ignore_empty to TRUE so doubled delimiters don't leave blank cells.
  • TEXTSPLIT spills, so the cells to its right must be empty or you get #SPILL!.
On this page+
  1. What does TEXTSPLIT do in Excel?
  2. TEXTSPLIT syntax
  3. How to split text into columns with TEXTSPLIT
  4. How to split text into rows instead of columns
  5. How to split at several different delimiters
  6. How to handle empty values and uneven rows
  7. How to get one item from the split
  8. Common TEXTSPLIT mistakes
  9. How to split text in older Excel
  10. Practise it

TEXTSPLIT in Excel splits the text in one cell into several cells at a delimiter, such as a comma or a space, with a single formula. Type =TEXTSPLIT(A2,",") and each item spills into its own column. This guide is for anyone who has pasted in comma-separated lists, tags or full names and needs them in separate cells, and it covers every argument with examples you can type in.

What does TEXTSPLIT do in Excel?#

TEXTSPLIT cuts text at every delimiter and returns the pieces as an array that spills into neighbouring cells. A delimiter is the character that separates the parts, like the comma in red,green,blue. A spill means one formula fills several cells: you type it in one cell, and Excel writes the results into the cells beside it.

Version note: TEXTSPLIT is available in Microsoft 365, Excel 2024 and Excel for the web. In Excel 2021, 2019 and older, it shows #NAME?. The last section covers what to use there.

TEXTSPLIT syntax#

Only the first two arguments are needed for most jobs.

Excel formula
=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
ArgumentWhat it does
textThe cell to split
col_delimiterWhere to split across columns, such as ","
row_delimiterOptional. Where to split down rows
ignore_emptyOptional. TRUE skips empty pieces. The default, FALSE, keeps them as blank cells
match_modeOptional. 1 makes the delimiter match ignore capitals. The default, 0, is case-sensitive
pad_withOptional. What to show in gaps when rows have different lengths. The default is #N/A

How to split text into columns with TEXTSPLIT#

Give TEXTSPLIT the cell and the delimiter, and it does the rest. Here are some orders whose items arrived in one cell:

ABCD
1Order itemsItem 1Item 2Item 3
2Desk lamp,USB-C hub,NotebookDesk lampUSB-C hubNotebook
3Office chair,Monitor standOffice chairMonitor stand

In B2, type:

Excel formula
=TEXTSPLIT(A2,",")

"Desk lamp" lands in B2, and "USB-C hub" and "Notebook" spill into C2 and D2. To do the other rows, select B2:B4 only (not columns C and D) and fill down with Ctrl+D on Windows or ⌘D on a Mac. Each row spills as wide as it needs.

If the items are separated by a comma and a space, use both as the delimiter: =TEXTSPLIT(A2,", "). Otherwise every item after the first starts with a space.

How to split text into rows instead of columns#

Leave the column delimiter empty and put the delimiter in the third argument to split down a column:

Excel formula
=TEXTSPLIT(A2,,",")

The two commas in a row mean "no column delimiter". Now each item goes in a new row, which is easier to read for long lists.

You can use both at once to turn one cell into a small table. With a=1;b=2;c=3 in A2:

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

Each ; starts a new row and each = starts a new column, giving three rows of two cells: a and 1, b and 2, c and 3. The numbers come back as text, so wrap the result in VALUE, or multiply by 1, before you add them up.

How to split at several different delimiters#

Put the delimiters in braces to split at any of them. Braces make an array constant, a fixed list typed into the formula:

Excel formula
=TEXTSPLIT(A2,{",",";"})

For red;green,blue, this gives red, green and blue in three cells. It is much shorter than nesting SUBSTITUTE to turn every separator into one before splitting.

How to handle empty values and uneven rows#

Set ignore_empty to TRUE when the text has doubled delimiters. In red,green,,blue there is nothing between the second and third comma:

FormulaResult
=TEXTSPLIT(A2,",")red, green, (blank), blue
=TEXTSPLIT(A2,",",,TRUE)red, green, blue

When you split into rows and columns and some rows are shorter, Excel fills the gaps with #N/A. Use pad_with to show something friendlier. =TEXTSPLIT(A2,"=",";",,,"-") fills the gaps with a dash.

The match_mode argument matters only when your delimiter is a letter. =TEXTSPLIT(A2,"x",,,1) splits at both "x" and "X".

How to get one item from the split#

Wrap TEXTSPLIT in INDEX to return a single piece instead of the whole spill. To get the second item:

Excel formula
=INDEX(TEXTSPLIT(A2,","),2)

For the first or last item around one delimiter, TEXTBEFORE and TEXTAFTER are often simpler, because they return one result and don't spill. To count how many items a cell holds, =COUNTA(TEXTSPLIT(A2,",")) works, or see our guide to counting characters and words in a cell.

TEXTSPLIT also feeds other dynamic array functions. =SORT(TEXTSPLIT(A2,,",")) splits a list into rows and sorts it A to Z. The guide to SORT and SORTBY explains the sorting options.

Common TEXTSPLIT mistakes#

Most problems come from the spill or the delimiter:

  • #SPILL! The cells to the right aren't empty. Clear them. If you filled the formula across columns C and D as well, delete those copies.
  • Leading spaces. You split at "," but the text uses ", ". Include the space in the delimiter, or wrap the result in TRIM.
  • Numbers that won't add. Split pieces are always text. Use =VALUE(...) or =TEXTSPLIT(A2,",")*1.
  • Case-sensitive delimiters. Splitting at "x" ignores "X" unless you set match_mode to 1.
  • Splitting a whole range in one formula. TEXTSPLIT works on one cell at a time. Write it in the first row and fill down.

Splitting names is a special case with its own traps, like middle names and "Last, First" order. Our guide on how to split first and last names covers them. And if two codes look the same but differ only in capitals after splitting, EXACT compares them case by case.

How to split text in older Excel#

Without TEXTSPLIT, you have two options. For a one-off job, use Data > Text to Columns: choose Delimited, tick the delimiter and click Finish. It splits the cells in place, with no formula, so it doesn't update when the data changes. The Text to Columns guide walks through each screen.

For a formula that works in any version, combine LEFT, MID and FIND. The first item before a comma is:

Excel formula
=LEFT(A2,FIND(",",A2)-1)

The LEFT function guide shows how LEFT counts characters, and LEFT, RIGHT and MID shows the full pattern for the middle and last pieces.

Practise it#

Try the live exercise above, then open the Modern Excel lesson, where you split names with TEXTSPLIT and fill it down without causing a spill error. For splitting at the first or last delimiter, the TEXTBEFORE and TEXTAFTER lesson lets you practise on emails and file paths in a live spreadsheet.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Each order in column A lists its items separated by commas. In B2, use TEXTSPLIT to split A2 at each comma, so every item lands in its own column.

fx
ABCDE
1
Order items
Item 1
Item 2
Item 3
2
Desk lamp,USB-C hub,Notebook
3
Office chair,Monitor stand
4
Notebook,Pens,Stapler
5
6
7

Tip: Two parts: the cell to split, then the comma in double quotes.

Practise this in a lesson

LessonModern Excel: XMATCH, SORTBY, TEXTSPLIT and spill references (A2#)Split names with TEXTSPLIT, find positions with XMATCH, sort by another column with SORTBY, and refer to a whole spilled result with A2#.LessonTEXTBEFORE and TEXTAFTERSplit emails, "Last, First" names and file paths at a delimiter with TEXTBEFORE and TEXTAFTER, including picking which occurrence to split at.Function guideLEFTPull the first characters from a cell with Excel's LEFT: prefixes, initials and first names. Examples, pitfalls and live practice.

Frequently asked questions

Which versions of Excel have TEXTSPLIT?

+

TEXTSPLIT is available in Microsoft 365, Excel 2024 and Excel for the web. Excel 2021 and older show a #NAME? error; use Text to Columns or LEFT, MID and FIND there.

How do I split text by more than one delimiter?

+

Put the delimiters in an array constant: =TEXTSPLIT(A2,{",",";"}) splits at every comma and every semicolon.

Why does TEXTSPLIT show #SPILL!?

+

The cells the result needs to the right (or below) aren't empty. Clear them, or move the formula to a column with enough free space.

Can TEXTSPLIT split a whole column at once?

+

Not into a neat table. Write TEXTSPLIT for the first row and fill it down, leaving enough empty columns to the right for each row's spill.

How do I get just the second item after splitting?

+

Wrap TEXTSPLIT in INDEX: =INDEX(TEXTSPLIT(A2,","),2) returns the second item only, in a single cell.

Sources

  • TEXTSPLIT function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What does TEXTSPLIT do in Excel?
  2. TEXTSPLIT syntax
  3. How to split text into columns with TEXTSPLIT
  4. How to split text into rows instead of columns
  5. How to split at several different delimiters
  6. How to handle empty values and uneven rows
  7. How to get one item from the split
  8. Common TEXTSPLIT mistakes
  9. How to split text in older Excel
  10. Practise it

Keep reading

Text· 7 min read

Count Characters and Words in a Cell in Excel

To count characters in a cell, use =LEN(A2). It counts every letter, digit, space and symbol. To count one character, subtract the length without it: =LEN(A2)-LEN(SUBSTITUTE(A2,",","")). To count words, count the spaces in the trimmed text and add 1: =LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))+1.

Text· 6 min read

Case-Sensitive Matching in Excel With EXACT

EXACT compares two values and returns TRUE only when they match character for character, capitals included: =EXACT(A2,B2). The equals sign, VLOOKUP, XLOOKUP and COUNTIF all ignore case, so "ab-1" and "AB-1" count as the same. Use EXACT inside IF, SUMPRODUCT or XLOOKUP when capitals matter.

Text· 7 min read

TEXTBEFORE and TEXTAFTER in Excel

TEXTBEFORE returns the text before a delimiter, and TEXTAFTER returns the text after it. =TEXTBEFORE(A2,"@") gives the username of an email, and =TEXTAFTER(A2,"@") gives the domain. A third argument picks which occurrence: -1 means the last one. They need Microsoft 365, Excel for the web or Excel 2024; in older Excel, use LEFT or MID with FIND.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free