Split by Delimiter to New Rows


March 20, 2018 - by

Split by Delimiter to New Rows

Someone built a worksheet with a repeating group of people in column B. This isn't the right way to build a spreadsheet. You've received the worksheet and would like to create a new row for each person listed in column B. The other columns (A & C) should be copied for each new row.

Twist the data in B to New Rows
Twist the data in B to New Rows

Amazingly, Excel can do this using the new Power Query tools. If you are in Excel 2010 or Excel 2013, download Power Query from Microsoft. If you are in Office 365, go to the Data tab and look for Get & Transform Data.


Amazing tools hiding where no one would think to look for them.
Amazing tools hiding where no one would think to look for them.

To convert the data, select the data (A1:C8) in this case. Select From Table/Range. Excel will display the Create Table dialog. Click OK.

First, Excel converts the data to a table.
First, Excel converts the data to a table.

You are now in the Query Editor. Click on the Crew heading to select that column.



From the Home tab in the Query Editor, open the Split Column drop-down and choose By Delimiter.

Initially, Power Query will detect that your delimiter is a semicolon. You want to click the triangle next to Advanced Options.

Open Advanced Options.
Open Advanced Options.

Under Advanced Options, choose to Split into Rows.

New feature in July 2017
New feature in July 2017

The data preview will show that you will have 47 rows of 3 columns. Click Close & Load to return the results to Excel.

Success splitting the data in B to new rows
Success splitting the data in B to new rows

The results are shown on a new worksheet inserted to the left of the original worksheet.

The amazing benefit: If you change any data in the original worksheet, you can re-run the query using the Refresh icon.

After any change to the source data, click Refresh
After any change to the source data, click Refresh

After a refresh, the new data will appear in the query results.

Refreshing takes a few seconds
Refreshing takes a few seconds

Power Query is amazing. Since it debuted after Excel 2013, it never achieved widespread fame. But it deserves to be famous.

Getting ready for the new features in Excel 2019.

Excel Thought Of the Day

I've asked my Excel Master friends for their advice about Excel. Today's thought to ponder:

"Implicit measures are but portals to no man's land."

Title Photo: Gian. / Unsplash