Forum

How to separate two...
 
Notifications
Clear all

How to separate two headers with two kind of data below them

6 Posts
2 Users
0 Reactions
123 Views
(@xpeed)
Posts: 3
Active Member
Topic starter
 

Hi. My name's Andre. I'm from Brazil. I am having a problem with Power Query. I have a sheet that contains some columns with header and data, that's ok...but some columns have two headers and two kind of the respective data below them. How can I separate this colums in two columns?

Thanks for the help!

 
Posted : 21/07/2022 12:22 pm
Riny van Eekelen
(@riny)
Posts: 1190
Member Moderator
 

Hi Andre,

Would be good if you could attach your file.

 
Posted : 21/07/2022 1:55 pm
(@xpeed)
Posts: 3
Active Member
Topic starter
 

Sorry! I attached the file but occurred some problem. I'll try again. 🙂

Thanks.

 
Posted : 21/07/2022 4:39 pm
Riny van Eekelen
(@riny)
Posts: 1190
Member Moderator
 

Thanks for the file. I added a few queries that create two sub-sets of the data. One for the the odd numbered rows (group1) and one for the even numbered rows (group2). Promote the headers in each of these groups. Append as new (Output), remove unwanted columns , sort, fill, filter, reorder and clean-up a bit.

Perhaps there are more elegant ways to achieve this but this is all I could think of right now.

 
Posted : 21/07/2022 11:47 pm
(@xpeed)
Posts: 3
Active Member
Topic starter
 

Thank you very much! This solution was very clever for me.

 
Posted : 22/07/2022 9:46 pm
Riny van Eekelen
(@riny)
Posts: 1190
Member Moderator
 

Glad I could help!

 
Posted : 23/07/2022 1:14 am
Share: