Insert row using power query

hardeep.kanwar

Well-known Member
Joined
Aug 13, 2008
Messages
691
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: 9

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
Glad we could help. :)
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

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