How to Split Text Into Separate Columns in Excel Using Commas or Spaces
Pasted contacts or order exports can arrive as a single spreadsheet column. Splitting every comma can break quoted addresses, while spreadsheet type conversion can remove leading zeros from identifiers.
What is the problem?
Pasted contacts or order exports can arrive as a single spreadsheet column. Splitting every comma can break quoted addresses, while spreadsheet type conversion can remove leading zeros from identifiers.
Step-by-step solution
Inspect the actual field separator
Determine whether commas, tabs or repeated whitespace separate the fields. Preserve a quoted field containing a comma rather than treating the punctuation as a new boundary.
Laptop and smartphone analytics workspace · Photo source Use Excel's import preview
Select the source column and open Text to Columns from the Data tab in a supported desktop version. Choose a delimiter and destination without overwriting neighboring data.
A person working on a laptop · Photo source Preserve codes and review untrusted values
Set postal codes or identifiers to Text when importing. Values beginning with formula markers can be interpreted as formulas, so handle untrusted data carefully.
Alternative method
On versions supporting TEXTSPLIT, a formula can distribute values into adjacent cells. Make sure the spill area is empty and check the available options.
Known limitations
Multiline quoted CSV records and embedded tab characters are unsupported. The converter does not sanitize formulas or prevent automatic spreadsheet type conversion.
Frequently asked questions
Excel may have interpreted the identifier as a number. Reimport the original with the destination column set to Text instead of trying to recover lost digits.
Official primary sources
This article uses the official references below; consult them for the full guidance.