New Tool Radar

AI for Data & Spreadsheets

How to Split a Combined Column Into Columns With Excel Text to Columns

Split one column holding two facts, such as city and country, into separate columns with Text to Columns.

Schematic with three steps: Make room to the right; Run Text to Columns on the delimiter; Check the split and clean the results.

One cell holding two facts cannot be filtered or counted properly: you cannot sort by country when it shares a cell with the city. Text to Columns splits a column at a delimiter into separate columns, in place, with no formula to maintain.

What you need

  • Excel with the combined column
  • Empty columns to the right, for the split results
  • A note of the delimiter used, such as a hyphen or comma

Step 1: Make room to the right

Check that the columns to the right of the combined column are empty, or insert new columns. Text to Columns writes over the cells to its right, so anything there will be replaced.

Step 2: Run Text to Columns on the delimiter

Select the column, open Data, Text to Columns, choose Delimited, tick the delimiter the data uses, choose a destination cell, and click Finish. Each part of the value lands in its own column.

Step 3: Check the split and clean the results

Read a few split rows against the original values. Trim any leftover spaces with TRIM, and confirm no value was cut in half because it contained the delimiter inside the text itself.

Worked example: synthetic city and country column

The table below is a synthetic example. It shows the expected result of splitting a column; no workbook was opened.

Original value City Country
Lisbon – Portugal Lisbon Portugal
Porto – Portugal Porto Portugal
Madrid – Spain Madrid Spain
Rows split 10 All clean

Expected result (UNTESTED). all 10 combined values split cleanly into city and country, with no value cut in half and no leftover spaces. The two new columns can now be filtered and counted separately. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Text to Columns overwrites cells to the right, so make space first.
  • A delimiter that also appears inside a value will split that value in two.
  • Unlike a formula split, Text to Columns does not update when next month export is pasted in.

Sources

See all