To split text in Excel, you can use the "Text to Columns" wizard for a one-time manual split or the TEXTSPLIT function for a dynamic, formula-based approach. The Text to Columns feature is found under the Data tab and allows you to divide a single column of text into multiple columns based on a specific delimiter, such as a comma or a space. The TEXTSPLIT function, available in Microsoft 365 and Excel 2021, allows you to do the same using a formula that updates automatically if the source data changes. Note that menu labels and function availability may differ slightly depending on your version of Excel, your operating system, or your region.
What You'll Need
- A computer with Microsoft Excel installed (version requirements vary by method).
- A dataset containing text strings that need to be separated (e.g., "First Name Last Name" or "City, State").
- Empty columns to the right of your data to prevent existing information from being overwritten.
Step-by-Step
Method 1: Using the Text to Columns Wizard
This method is best for static data that does not need to update automatically. It is available in almost all versions of Excel.
- Open your Excel workbook and select the cell or the entire column containing the text you want to split. Ensure you only select one column at a time.
- Navigate to the Data tab on the top ribbon.
- In the Data Tools group, click on Text to Columns. This will open the Convert Text to Columns Wizard.
- In Step 1 of the wizard, choose between Delimited or Fixed width. Choose Delimited if your text is separated by a character like a comma, tab, or space. Choose Fixed width if the data is aligned in columns with spaces between each field. Click Next.
- In Step 2, if you chose Delimited, select the delimiter that separates your data. Common options include Tab, Semicolon, Comma, Space, or Other (where you can type a custom character like a pipe symbol |). You will see a preview of how the data will be split in the window below. Click Next.
- In Step 3, you can set the data format for each resulting column. Click on a column in the Data preview window and select General, Text, or Date. This is particularly useful if your split data contains leading zeros (like zip codes) that you want to preserve as text.
- In the Destination box, the default is usually the first cell of your original selection. If you leave it as is, Excel will overwrite your original data. To keep the original data, change the destination to an empty cell (e.g.,
$B$1). - Click Finish. Your text is now split across multiple columns.
Method 2: Using the TEXTSPLIT Function
This method is available for Microsoft 365 and newer versions. It is dynamic, meaning if you change the original text, the split results update instantly.
- Click on the empty cell where you want the first piece of split text to appear.
- Type
=TEXTSPLIT(to begin the function. - Select the cell containing the text you want to split (the text argument). For example, if your data is in cell A2, type
A2. - Type a comma to move to the next argument, then type the column_delimiter inside quotation marks. For example, if your data is separated by a comma, type
", ". The formula should now look like=TEXTSPLIT(A2, ", "). - (Optional) If your data is split by both rows and columns, you can add a row_delimiter after another comma. If you only need columns, leave this blank or close the parenthesis.
- (Optional) You can add the ignore_empty argument. Type
TRUEif you want to ignore consecutive delimiters that would otherwise create empty cells. - Press Enter. Excel will automatically "spill" the results into the adjacent cells to the right.
Common Mistakes
One of the most frequent errors when using the Text to Columns wizard is failing to clear the space to the right of the active column. Because Excel writes the split data into the next available cells, any existing data in those columns will be permanently overwritten without a warning prompt. Always insert a few blank columns to the right of your source data before starting.
Another common mistake is selecting the wrong delimiter. For instance, choosing "Space" as a delimiter when your data contains multiple words (like "New York, NY") will split "New" and "York" into separate columns, which is usually not the intended result. In such cases, using the comma as the primary delimiter is the correct approach.
Users often forget to set the column data format to "Text" for numeric values that should not be treated as numbers. A classic example is a product ID or a postal code that starts with zero. If left as "General," Excel will remove the leading zero, altering the data. Setting the format to "Text" in the final step of the wizard prevents this.
Tips
To handle complex delimiters, you can use the "Other" box in the Text to Columns wizard. If your data is separated by a unique character like a hashtag (#) or a vertical bar (|), this is the only way to split the data accurately without using complex formulas.
When using the TEXTSPLIT function, you can split by multiple different delimiters at once by using an array constant. For example, if your data is separated by either a comma or a semicolon, you can use =TEXTSPLIT(A2, {",", ";"}). This tells Excel to treat either character as a valid break point.
If you have a massive dataset, the TEXTSPLIT function may slow down your workbook because it recalculates every time a change is made. For very large files, it is often more efficient to use the Text to Columns wizard once and then copy-paste the results as values to remove the formulas.
Troubleshooting
If you encounter a #SPILL! error when using the TEXTSPLIT function, it means there is already data in the cells where the function is trying to place the split text. To fix this, select the cells to the right of your formula and delete the existing content. Once the path is clear, the formula will automatically populate the cells.
If the Text to Columns wizard does not seem to split your data, double-check your delimiter. Sometimes data that looks like it is separated by a tab is actually separated by multiple spaces. Try selecting "Space" and checking the "Treat consecutive delimiters as one" box to resolve this.
If the TEXTSPLIT function does not appear in your Excel formula list, you are likely using an older version of Excel (such as Excel 2016 or 2019) that does not support dynamic arrays. In this case, you must use the Text to Columns wizard or a combination of LEFT, RIGHT, MID, and FIND functions to manually extract the text.
If your data is not splitting because the delimiters are inconsistent (e.g., some rows use commas and others use semicolons), you can use the Find and Replace tool (Ctrl+H) to standardize all delimiters to a single character before running the split process.
Frequently Asked Questions
Can I split text into rows instead of columns?
Yes, using the TEXTSPLIT function, you can specify a row delimiter as the third argument. This will cause the split data to flow downwards into rows rather than across into columns.
Does Text to Columns work on a whole table at once?
No, the Text to Columns wizard only works on one selected column at a time. You must repeat the process for each column you wish to split.
Is there a way to split text without using a formula?
Yes, you can use Flash Fill. Start typing the desired result in the column next to your data for the first two rows. Press Ctrl+E, and Excel will attempt to recognize the pattern and fill the rest of the column automatically.
What happens to the original data after splitting?
If you use the Text to Columns wizard and set the destination to the original cell, the original data is replaced. If you use the TEXTSPLIT function or change the destination cell in the wizard, the original data remains untouched.
Can I split text based on a specific word instead of a character?
The TEXTSPLIT function allows you to use a word as a delimiter by placing it in quotes (e.g., " and "). The Text to Columns wizard, however, only supports single-character delimiters in the "Other" box.