Create new Rows

Danny54

Active Member
Joined
Jul 3, 2019
Messages
295
Office Version
  1. 365
Platform
  1. Windows
What is the best way to expand data found in a cell by creating new rows?
In my example I have a row of data that contains 3 values (row Kind)
In Sheet2 the data is expanded into 3 different rows keeping all the other values

Sheet1
ColorDate1Date2Date3KindOwner
Red8/10/2022 15:358/10/2022 16:108/11/2022 13:57dog
cat
bird
Sophia

Sheet2
ColorDate1Date2Date3KindOwner
Red8/10/2022 15:358/10/2022 16:108/11/2022 13:57dogSophia
Red8/10/2022 15:358/10/2022 16:108/11/2022 13:57catSophia
Red8/10/2022 15:358/10/2022 16:108/11/2022 13:57birdSophia

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
figured a way that works

select the Kind column of data
do a control H to bring up a find and change dialog
insert control+j in the find and a comma in the replace
this sets up for the create new rows using the power query editor
next select all the data and turn it into a table by selecting the data tab then From Table / Range - this opens the data in power query editor
select the Kind row of data
select Split Column and do by delimiter
set the delimiter to a comma
select the Advanced options
select Split into rows
this will now create new rows based on each kind
select Close & Load to save the data back to a new sheet

Hope this help anyone else trying to do the same thing

Thanks
 
Upvote 0
Solution

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top