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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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