I want to copy my data from different rows to some other column. Example.
B4 has to be copied to H129 ,
B25 to H130,
B46 to H131...and so on ..
Here the rows are getting incremented by 21 rows .
How do do that in excel ?
|
Go to VBA and:
|
|||||
|
And when you need to copy all (i.e.. values and formats as well) than do it in this way:
Using @Daniel code you could need something like this inside your loop
|
|||
|
Enter the following formula into cell H129:
Then use "Fill Down" to copy the formula from this cell into the cells below it. This works because the "H129" reference will change to H130, H131, etc. as it is copied, so the ROW() function will return successively higher numbers. Edit: Corrected formula to match example in question. |
|||||
|