Can you code an excel formula to copy paste a list with different copy paste amounts?

Milos

Board Regular
Joined
Aug 28, 2016
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a scenario where I am trying to increase my efficiency at work because my current process usually takes ages!

I have a list that needs to be copy/pasted multiple times but in different amounts. Can this be coded somehow? I usually insert rows in between each different row and guestimate how many blank spaces there need to be minus 1. Then I perform the drag down copy method to ensure that the rows are identical.

Is there an easier way to do this!?

Fruity example: [TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Contents 1[/TD]
[TD]Contents 2[/TD]
[TD]Contents 3[/TD]
[TD]Contents 4[/TD]
[TD]No. of times to be copied[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Pear[/TD]
[TD]Banana[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Carrot[/TD]
[TD]Broccoli[/TD]
[TD]Turnip[/TD]
[TD]Cabbage[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Juice[/TD]
[TD]Milk[/TD]
[TD]Coke[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Final output wanted:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Contents 1[/TD]
[TD]Contents 2[/TD]
[TD]Contents 3[/TD]
[TD]Contents 4[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Pear[/TD]
[TD]Banana[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Orange[/TD]
[TD]Pear[/TD]
[TD]Banana[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Carrot [/TD]
[TD]Broccoli[/TD]
[TD]Turnip[/TD]
[TD]Cabbage[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Carrot[/TD]
[TD]Broccoli[/TD]
[TD]Turnip[/TD]
[TD]Cabbage[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Carrot[/TD]
[TD]Broccoli[/TD]
[TD]Turnip[/TD]
[TD]Cabbage[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Juice[/TD]
[TD]Milk[/TD]
[TD]Coke[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Juice[/TD]
[TD]Milk[/TD]
[TD]Coke[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Juice[/TD]
[TD]Milk[/TD]
[TD]Coke[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Water[/TD]
[TD]Juice[/TD]
[TD]Milk[/TD]
[TD]Coke[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
 

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