Excel can split a string by a delimiter in a few ways, and the right one depends on your Excel version. The fastest modern method is Data > Text to Columns for a one-time split, or the TEXTSPLIT function if you have Microsoft 365 or Excel 2024. Older versions can use Text to Columns or a combination of LEFT, MID, RIGHT, and FIND. The steps below cover the most reliable methods, starting with the one that works in every version.

What You'll Need

  • Excel 2010 or later for Text to Columns; Microsoft 365 or Excel 2024 for TEXTSPLIT.
  • Your data in a single column, with one string per cell.
  • An empty column or columns to the right of your data (Text to Columns overwrites cells to the right).
  • For TEXTSPLIT, a cell reference and the delimiter character in quotes (e.g., ",").

Step-by-Step

Method 1: Text to Columns (works in all versions)

  1. Select the cells containing the strings you want to split. Do not select the entire column unless you want the split applied to every row.
  2. Go to the Data tab on the ribbon and click Text to Columns. (Menu labels can differ slightly by Excel version and region.)
  3. In the wizard, choose Delimited and click Next.
  4. Under Delimiters, tick the character that separates your values—common choices are Comma, Semicolon, Space, or Tab. If your delimiter is a custom character (like a pipe |), tick Other and type it in the box.
  5. Check the Data preview at the bottom. If it looks right, click Next.
  6. Optionally set a format for each column (General, Text, Date). For codes with leading zeros, choose Text so they are not stripped.
  7. Click Finish. The values are split into adjacent columns. Note: this overwrites any data already in those cells.

Method 2: TEXTSPLIT function (Microsoft 365 / Excel 2024)

  1. Click an empty cell where you want the first split value to appear.
  2. Type =TEXTSPLIT(A2, ",") and press Enter. Replace A2 with your cell reference and "," with your delimiter in quotes.
  3. The result spills into adjacent cells automatically. To split by multiple delimiters, use an array constant, e.g., =TEXTSPLIT(A2, {",",";"}).
  4. If you need only one part, wrap it in INDEX: =INDEX(TEXTSPLIT(A2, ","), 1, 2) returns the second item.
  5. To split into rows instead of columns, add the optional row delimiter argument: =TEXTSPLIT(A2, , ";") splits on semicolons down rows.

Method 3: Legacy formulas (Excel 2019 and earlier, no TEXTSPLIT)

  1. To get the first part before the delimiter: =LEFT(A2, FIND(",", A2) - 1).
  2. To get the second part: =MID(A2, FIND(",", A2) + 1, FIND(",", A2, FIND(",", A2) + 1) - FIND(",", A2) - 1) (works for two delimiters; extend carefully for more).
  3. Copy the formula down. These formulas assume the delimiter exists; wrap with IFERROR to handle missing delimiters.

Common Mistakes

  • Overwriting data: Text to Columns writes into the columns to the right without warning. Insert blank columns first.
  • Wrong delimiter: A comma inside a quoted field (e.g., "Smith, John") will split incorrectly. Use Text to Columns with the Text qualifier set to quote, or clean data first.
  • Leading zeros lost: Choosing General format turns 001 into 1. Set the column format to Text in step 6.
  • TEXTSPLIT not available: It is not in Excel 2019 or earlier, and not in Excel for the web unless your account has the newer functions. Use Text to Columns instead.
  • Forgetting the spill range: TEXTSPLIT needs empty cells to the right or below; otherwise you get a #SPILL! error.

Tips

  • Use Power Query (Data > Get & Transform) for repeatable splits: import your table, use Split Column by Delimiter, and load the result back. It refreshes when data changes.
  • To split by a space but keep first and last names together, use Text to Columns and set the delimiter to space, then rejoin columns with a formula if needed.
  • Test on a copy of your sheet before running Text to Columns on important data.
  • TEXTSPLIT is dynamic: if the source cell changes, the split updates automatically.

Troubleshooting

  • Nothing splits: Check that the delimiter you selected matches the actual character. A non-breaking space (common from web copy) looks like a space but is not; use Find & Replace to replace it with a regular space first.
  • #NAME? error with TEXTSPLIT: Your Excel version does not support it. Use Text to Columns or Power Query.
  • #SPILL! error: Clear the cells where the result would spill, or move the formula to an empty area.
  • Split values appear in the wrong columns: Undo (Ctrl+Z) immediately, insert enough blank columns, and repeat.
  • Text to Columns greyed out: You may be in a protected sheet or editing a cell. Press Esc, unprotect the sheet if you have permission, and select a range (not a single cell in edit mode).

Frequently Asked Questions

Can I split a string by multiple delimiters at once?

Yes, with TEXTSPLIT in Microsoft 365 or Excel 2024: =TEXTSPLIT(A2, {",",";","|"}). In older versions, use Text to Columns once per delimiter or Power Query.

Does Text to Columns update when the original data changes?

No. It is a one-time operation. For automatic updates, use TEXTSPLIT or Power Query.

How do I split a string into rows instead of columns?

Use TEXTSPLIT with the row delimiter argument, e.g., =TEXTSPLIT(A2, , ";"). In older versions, Power Query's Split Column > By Delimiter > Rows is the reliable route.

Why does TEXTSPLIT return a #VALUE! error?

Usually the delimiter argument is missing or not in quotes. Ensure it is written as "," (with quotes) and that the text argument is a valid cell reference or string.

Can I split text without a formula?

Yes—Text to Columns is the no-formula method and works in every Excel version. Flash Fill (Data > Flash Fill) can also extract patterns from examples, but it is less predictable for delimiters.

Is there a way to split and keep the delimiter?

TEXTSPLIT removes the delimiter. To keep it, you would need a formula approach with FIND and MID, or Power Query with a custom column. For most cases, removing the delimiter is what you want.