Excel: splitting delimited cell data into new multiple rows with all other columns data duplicated

Recently I had a need to export content from one system and import into another.
The exported data included a cell with multiple values delimited/separated with an underscore (“value1_value2_value3”).
In the importing system I needed separate rows for each of the values in that cell, but with all other cells in other columns of that row to simply duplicate in the new rows .

Apparently this is simply achievable using excel’s power query.
Here are the steps:

  1. Select any cell in your datasheet and press Ctrl+T to convert all data to a table
  2. Top menu – click “Data”->”From Table/Range”

    the Power Query Editor opens
  3. In the table – select the column you wish to split and click “Split Column”->”By Delimiter”
  4. Select the delimiter used in your data
  5. Click “Advanced options”->”Split into”->”Rows”
  6. Click “OK”. The table data will preview the changes
  7. Click “Close and Load”

    A new worksheet is created with the processed data

Good luck and let me know if this helped you.

Leave a Reply

Your email address will not be published. Required fields are marked *