In Microsoft Excel for Microsoft 365 on Windows, select the cells you want to split, then choose Data > Text to Columns. In the wizard, choose Delimited for values separated by characters such as commas or tabs, or Fixed width for values aligned at set character positions; check the preview and destination before selecting Finish.
What Text to Columns Does
Text to Columns takes the contents of a column and distributes parts of each cell across neighboring columns. It is useful when several pieces of information have been stored together in one field, such as a first and last name, a city and region, or an identifier followed by a description. The command changes the worksheet data; it does not merely change how the text looks.
For example, a cell containing Chen, Mira can be split at its comma into two cells. The original value is replaced by the first part, and the second part is placed in the next column. If a row has more parts than expected, Excel may fill additional columns to the right. That behavior makes it important to check the output area before running the command.
Text to Columns is a one-time transformation, not a live connection between the original text and the results. If the source changes later, the separated values will not automatically update. For repeatable or frequently refreshed work, a formula or Power Query may be a better fit.
When to Use It
The tool is most helpful when the source follows a consistent pattern. Common examples include names separated by spaces, addresses separated by commas, tab-delimited data copied from a report, or fixed-width records in which each field occupies a known position. It can also convert text-formatted dates or numbers when you specify the appropriate output format.
It is less reliable when rows use different separators or inconsistent conventions. If some names have middle names and others do not, splitting every row at each space may scatter the parts into different columns. Likewise, an address may contain several commas, so splitting at every comma might separate a street address, city, and region in ways you did not intend. Inspect representative rows before choosing a delimiter.
Prepare the Worksheet First
Make a copy of the worksheet or workbook when the source data matters. Text to Columns writes into cells and can replace existing content; Excel does not always provide a convenient way to reconstruct the original field after you split it. Before opening the wizard, check these points:
- Clear the output area. Make sure the columns to the right of the source are empty for every row that may receive a result. Existing values could be overwritten.
- Check the selection. Select the column or range that contains the values to split. Remove a header from the selection if you do not want it processed as data.
- Look for inconsistent rows. Note whether separators, spacing, or field counts vary. A preview of only one row may not reveal every exception.
- Protect identifiers. Decide how to handle postal codes, product codes, account numbers, and other values where leading zeros or long digit strings matter.
If you need to keep the original column, copy it to a spare column before splitting, or set a different destination in the wizard. Do not assume that choosing a destination makes the other nearby cells safe: check the full width of the expected output.
Split Data Using Delimiters
Delimited splitting separates values at a character or marker, such as a comma, tab, semicolon, or space. For a straightforward example, suppose A2 contains Chen, Mira and the same pattern continues down column A. Select the relevant cells and choose Data > Text to Columns. In the wizard:
- Select Delimited, then select Next.
- Choose the delimiter used in the data. For the example, select Comma. The preview shows where Excel plans to split the values.
- If several delimiters in a row should count as one, select Treat consecutive delimiters as one. Use this carefully: it can remove the distinction between an empty field and repeated separators.
- Set the Text qualifier if the source uses quotation marks around fields. Check the preview for values that contain the delimiter inside quoted text.
- Select Next to set column formats if needed, then choose Finish.
For tab-separated material, choose Tab; for semicolon-separated material, choose Semicolon or Other and enter the character. Selecting Space splits at spaces, which is appropriate only when spaces really mark field boundaries. It is usually a poor choice for full names or street addresses because those fields commonly contain internal spaces.
The text qualifier matters when a delimited file encloses fields in quotation marks. In a properly quoted record, a comma inside a quoted address may be part of that field rather than a separator. The preview is the practical check: if it shows a quoted value broken at an internal comma, adjust the qualifier or investigate how the source file is formatted before finishing.
Split Data at Fixed Positions
Choose Fixed width when each field occupies a defined position rather than being separated by a character. This can suit older reports or records arranged in columns with consistent spacing. In the wizard preview, Excel may suggest break lines. Select or click in the preview to add a break, and adjust or remove breaks until each field is divided where you expect.
For example, if every record uses the first eight characters for an employee code and the next twenty for a department label, place a break after character eight and another after the department field if necessary. Fixed-width splitting depends on consistent character positions across rows. If a name or description varies in length and pushes later fields along, the breaks will not correctly identify those fields; a delimiter or a more structured import may work better.
Review multiple rows in the preview, especially rows with the longest values. A break that looks right for a short first row may cut through a field in a longer one. Fixed width is about character position, not visual alignment created by proportional fonts.
Choose Formats to Preserve Values
The wizard’s final step lets you set a format for each output column. General asks Excel to interpret values as numbers, dates, or other recognizable data. Text keeps the contents as text, which is often safer for codes and identifiers. The date option lets you specify a date order such as MDY, DMY, or YMD when that matches the source.
Consider a code such as 00427. If Excel interprets it as a number, it may display as 427, losing the leading zeros. Select the relevant output column in the wizard preview and set its format to Text to retain them. The same precaution helps with long numeric identifiers that are labels rather than quantities. A column of postal codes, for instance, should not be treated as a number just because it contains digits.
Dates deserve special attention because 03/04/2025 can mean March 4 or April 3 depending on the date convention. If you know the source uses day-month-year, choose the matching date order rather than relying on Excel’s regional interpretation. After splitting, check the result cells and their formatting; a date displayed differently may still represent the intended date, but an incorrect interpretation can change the underlying value.
Examples and a Formula Alternative
A comma-separated contact field might contain Mira Chen, Seattle, WA. Splitting at every comma creates three fields, but the first field remains a full name rather than separating first and last names. This illustrates an important point: Text to Columns follows the delimiter you select; it does not understand the meaning of a name, address, or other field.
For a live split of a value in A2 using Microsoft 365 or Excel 2024, enter this formula in B2:
=TEXTSPLIT(A2,", ")
With Mira Chen, Seattle, WA in A2, the formula returns Mira Chen, Seattle, and WA in adjacent cells. The result spills automatically, so keep those cells empty. Unlike Text to Columns, the formula result updates if A2 changes. It also splits only at the exact comma-and-space delimiter shown; if some rows use a comma without a following space, the pattern needs to be handled accordingly.
Text to Columns is often simpler for a one-time cleanup. A formula is useful when you want to preserve the source and have results update. For repeatable imports or data that needs several cleaning steps, Power Query can provide a refreshable workflow; it is available through Excel’s Data tab, though the exact controls depend on the data source and Excel version.
Common Problems and How to Fix Them
- Results overwrite other data: Undo immediately with Ctrl+Z on Windows or Command+Z on Mac, if the action is still the latest change. Then clear a wider output area or choose a safe destination and try again.
- Leading zeros disappear: Return to the wizard and set that output column to Text before finishing. Formatting the cells as Text after zeros have already been removed does not restore them.
- Dates are reversed or unexpected: Check the date order in the wizard and compare the results with the source convention. If the source is ambiguous, confirm its meaning rather than guessing.
- Names or addresses split too far: The chosen delimiter occurs within a field. Use a more specific delimiter, handle the data in stages, or use a formula or query suited to the pattern.
- Some rows have missing fields: Blank results may reflect absent data or repeated delimiters. Review the source and the consecutive-delimiter setting instead of assuming Excel has lost information.
Undo is useful for an immediate mistake, but it is not a substitute for a backup, especially after more actions have been taken. A saved copy is the safer choice when splitting important or difficult-to-recreate source data.
Excel on Mac and the Web
In Excel for Microsoft 365 on Mac, the desktop workflow is also available from Data > Text to Columns; the wizard choices are broadly similar. Keyboard shortcuts differ: undo is Command+Z on Mac and Ctrl+Z on Windows. Ribbon layout and window details can vary by build, so use the Data tab if the command is not immediately visible.
Excel for the web may not expose the same full wizard in every account or interface. If the command is unavailable, try opening the workbook in the desktop app. For a supported Microsoft 365 web workbook, a formula such as TEXTSPLIT can also separate a value without using the wizard, provided the function is available in that Excel environment.
Frequently Asked Questions
Can I split text into rows instead of columns?
Text to Columns is designed to place separated parts across columns. If you need one item per row, split the values first and then use a suitable transpose or transformation workflow; check the arrangement carefully before replacing source data.
Can Text to Columns split a full name into first and last names?
It can split at spaces, but that may create extra columns for middle names or compound surnames. Use it only when the name pattern is consistent, or choose a method that accounts for the actual naming rules in your data.
Does Text to Columns change the original data?
Yes. It writes the separated results into the worksheet, beginning in the source column or at a destination you specify. Copy the original data or choose a separate destination if you need to keep it intact.
Why are leading zeros missing after splitting?
Excel may have interpreted a digit-only field as a number. Set that output column to Text in the wizard before finishing. If the zeros have already been removed and you did not preserve the original, they cannot always be inferred from the remaining value.
Can I split cells automatically when new data arrives?
Text to Columns performs a one-time operation; it does not automatically process later entries. Use a supported splitting formula such as TEXTSPLIT in Microsoft 365 or Excel 2024, or create a refreshable Power Query process for recurring imports.
Related
- Excel Slicers Explained: Filtering PivotTables and Tables
- Excel Slicer Search: How to Find Items in a Slicer
- Excel Slicer Tutorial: Add, Format, and Connect Filters
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Wrap Text in Google Sheets on Mac: A Step-by-Step GuideTo wrap text in Google Sheets on a Mac, select the cell or cells, then choose Format >…
- Google Sheets Data Cleaning: Tools, Steps, and TipsGoogle does not make a product called Google Excel: its spreadsheet app is Google Sheets, and it includes…
- Best Way to Make a Booklet in Word: Layout and PrintingFor a printed, folded booklet, the best way is Word’s built-in Book fold layout: it arranges pages in…
- How to Share a Calendar in Outlook and Set PermissionsTo share an Outlook calendar, open Calendar, choose Share Calendar, select the calendar and recipient, set what they…
- Weekly Meal Planner Spreadsheet: Build a Useful PlanA weekly meal planner spreadsheet is a simple grid for deciding what to eat, organizing recipes and turning…
- Compare Two Excel Sheets and Find Every DifferenceTo compare two Excel sheets, use a cell-by-cell formula when the rows line up, or match records by…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.