Copying rows

dunk

New Member
Joined
Feb 19, 2002
Messages
30
Help!!
I have 50 rows of data numbered 1-50, so far so good.
I want to have each row duplicated 25 times .
ie 1-25 same data in all rows
26-51 same data in these rows.etc, etc
I can do it manually- though very time consumming and it needs done regularly.

Any help would be welcome
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
The following code should work for you:

Range("a1").Select
For i = 1 To 50
Selection.EntireRow.Select
Selection.Copy
Range(Selection, Selection.Offset(23, 0)).Select
Selection.Insert Shift:=xlDown
ActiveCell.Offset(25, 0).Select
Next

It assumes the data starts in cell A1.
 
Upvote 0
On 2002-03-18 14:53, dunk wrote:
Help!!
I have 50 rows of data numbered 1-50, so far so good.
I want to have each row duplicated 25 times .
ie 1-25 same data in all rows
26-51 same data in these rows.etc, etc
I can do it manually- though very time consumming and it needs done regularly.

Any help would be welcome


This is quite simple to do manually.

Assuming that your sequential numbers (1-50) are in Column A :
- Select the 50 rows and Copy
- Select 1200 rows underneath the 50 rows and Paste
- Sort by Column A

You could record a macro.
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,384
Members
448,889
Latest member
TS_711

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