Insert row using power query

hardeep.kanwar

Well-known Member
Joined
Aug 13, 2008
Messages
693
Hi i have Unique data in column A,and in Column B i have number of duplicate on bases of Master Sheet,I need to insert the row if the count is more than 1.

can any body have idea to do this with Power query as i am not expert in VBA
 

Attachments

  • Screenshot 2024-02-13 165403.png
    Screenshot 2024-02-13 165403.png
    23.2 KB · Views: 15

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Make the data into a table. Load that into power query.
Add a custom column using the formula:
Power Query:
={1..[Count]}
That will add a new column with a list for each row, containing the numbers 1 to whatever the value of the Count field is. Click the double arrow button at the top right of the new list column, and choose Expand to new rows:
1707828580142.png


You can then remove the Count and Custom columns if you wish.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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