To split text in Excel, use the TEXTSPLIT function for a dynamic formula approach or the Text to Columns wizard for a one-time static split. The TEXTSPLIT function allows you to divide a string of text into multiple cells based on a specific character, such as a comma or a space, by entering =TEXTSPLIT(text, col_delimiter) into a cell. This is the most efficient method for modern versions of Excel because it updates automatically if the source data changes.

What You'll Need

  • A computer with Microsoft Excel installed.
  • For the TEXTSPLIT function, you must have a Microsoft 365 subscription or Excel for the Web, as this is a dynamic array function not available in older versions like Excel 2016 or 2019.
  • A dataset containing strings of text that share a consistent delimiter (e.g., full names separated by spaces, or addresses separated by commas).
  • Empty columns to the right of your data to prevent the split results from overwriting existing information.

Step-by-Step

Method 1: Using the TEXTSPLIT Function (Dynamic)

  1. Identify your delimiter: Look at the cell you want to split. Determine exactly which character separates the data. For example, if the cell contains "John,Doe,New York", your delimiter is a comma.
  2. Select the target cell: Click on 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 "spill" the results into adjacent cells.
  3. Enter the basic formula: Type =TEXTSPLIT( and then click on the cell containing the text you wish to split (e.g., cell A2).
  4. Define the column delimiter: Type a comma to separate the arguments, then put your delimiter inside double quotation marks. For a comma-separated list, the formula would look like: =TEXTSPLIT(A2, ",").
  5. Press Enter: Excel will automatically populate the neighboring cells with the separated text.
  6. Handle multiple delimiters (Optional): If your data uses different characters to separate values (e.g., some use semicolons and some use commas), you can use an array constant. Enter the formula as =TEXTSPLIT(A2, {",";";"}). This tells Excel to split the text whenever it encounters either a comma or a semicolon.
  7. Split into rows (Optional): If you prefer the data to go down a column rather than across a row, use the third argument of the function. The syntax is =TEXTSPLIT(text, col_delimiter, row_delimiter). To split by a comma into rows, leave the second argument blank and put the comma in the third: =TEXTSPLIT(A2, , ",").

Method 2: Using Text to Columns (Static)

  1. Highlight your data: Select the range of cells or the single column containing the text you want to split. Note that you can only select one column at a time for this process.
  2. Open the Wizard: Go to the Data tab on the top ribbon and click the Text to Columns button.
  3. Choose the file type: A dialog box will appear. Select Delimited (used when a character like a comma or tab separates the values) and click Next.
  4. Select your delimiters: Check the box that corresponds to your delimiter. If your delimiter is not listed (like a pipe symbol |), check Other and type the character into the small text box. You will see a preview of the split in the window below. Click Next.
  5. Set the data format: Choose the column data format. Usually, General works for most text, but you can select Date if you are splitting a date string.
  6. Choose the destination: By default, Excel will overwrite the original column. To keep your original data, click the arrow in the Destination box and select a different cell (e.g., $B$2).
  7. Finish: Click Finish to execute the split.

Common Mistakes

  • Overwriting Data: The most frequent error is not leaving enough empty columns to the right of the source data. In TEXTSPLIT, this results in a #SPILL! error. In Text to Columns, it simply erases whatever was in those cells without warning.
  • Forgetting Quotation Marks: When using the TEXTSPLIT function, the delimiter must be enclosed in double quotes (e.g., ","). If you enter =TEXTSPLIT(A2, ,), Excel will return a formula error.
  • Inconsistent Delimiters: Users often assume a space is a space, but some data contains "non-breaking spaces" or a mix of tabs and spaces. If the split doesn't look right, the delimiter might be inconsistent.
  • Selecting Multiple Columns: The Text to Columns wizard only works on a single selected column. If you try to highlight a table of three columns and run the tool, Excel will prompt you to select only one column.
  • Applying to Formulas: Attempting to use Text to Columns on a column that contains formulas can lead to unexpected results, as it converts the formula results into static values.

Tips

  • Clean Data First: Use the TRIM function before splitting. Often, text contains leading or trailing spaces (e.g., "John , Doe") that result in cells starting with a space after the split. =TEXTSPLIT(TRIM(A2), ",") is a powerful combination.
  • Convert to Values: If you used TEXTSPLIT but no longer need the formula, copy the resulting range and use Paste Special > Values. This prevents Excel from recalculating the split every time the sheet opens, which improves performance in large workbooks.
  • Use Flash Fill for Simple Tasks: If you only need to split one specific part of a string (like just the first name), try typing the first name in the cell next to the data and pressing Ctrl + E. Excel will attempt to detect the pattern and fill the rest of the column automatically.
  • Combine with TEXTJOIN: If you split data to clean it and then want to put it back together in a different order, use the TEXTJOIN function to merge the cells back into one string with a new delimiter.

Troubleshooting

If your split operation is not working as intended, follow these steps in order:

  1. Check for #SPILL! Errors: If using TEXTSPLIT, this error means there is something blocking the path of the data. Clear all cells to the right and below the formula cell.
  2. Verify the Delimiter: If the text doesn't split at all, you may be using the wrong character. Copy a single delimiter character directly from the cell and paste it into your formula to ensure it is an exact match.
  3. Check for Hidden Characters: Sometimes data imported from the web contains hidden characters. Use the =CLEAN() function on your source text to remove non-printable characters before splitting.
  4. Update Excel: If the TEXTSPLIT function does not appear in your formula suggestions, check your version. If you are on a permanent license version (like Office 2021), you cannot use TEXTSPLIT and must use the Text to Columns wizard or a combination of LEFT, RIGHT, and FIND functions.
  5. Restart the Application: If the Text to Columns wizard freezes or fails to launch, save your work, close Excel entirely, and restart the program.

Frequently Asked Questions

Can I split text by a specific number of characters instead of a delimiter?

Yes. In the Text to Columns wizard, select Fixed width instead of Delimited. This allows you to manually click and create break lines at specific character counts.

Does TEXTSPLIT work in Excel 2019?

No, TEXTSPLIT is only available for Microsoft 365 and Excel for the Web. Users of Excel 2019 or earlier should use the Text to Columns tool found in the Data tab.

How do I split text into columns if the delimiter is a line break?

In the Text to Columns wizard, check the Other box and press Ctrl + J inside the text box. This is the keyboard shortcut for a carriage return/line break.

Can I split one cell into multiple rows automatically?

Yes, using the TEXTSPLIT function. By leaving the second argument (column delimiter) empty and providing a delimiter in the third argument (row delimiter), the data will spill downwards instead of sideways.

What happens to the original data when I use Text to Columns?

By default, the original data is replaced by the split parts. To prevent this, change the Destination cell in the final step of the wizard to a blank column.

Can I use a formula to split text if I don't have Microsoft 365?

Yes, but it is more complex. You would typically use a combination of =LEFT(A2, FIND(",", A2)-1) to get the first part and =MID(A2, FIND(",", A2)+1, LEN(A2)) to get the second part.