Copy every other row

eqbal

Board Regular
Joined
Sep 6, 2002
Messages
92
HI

I have a worksheet and I want to copy the contents of every other row for 400 rows like below with drag and fill. Excel does not understand the algorithm. How can I do that? It's 400 rows!! This goes on for columns B to F too. Pls help.


[A2]=IF(H2<>"",H2,"")
[A3]=IF(H4<>"",H4,"")
[A4]=IF(H6<>"",H6,"")
.
.
.
[A400]=IF(H800<>"",H800,"")
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I'm fairly sure U need to use vba. If U want some code please specify exactly what sheet, columns and rows U want transferred as well as exactly where U want them to go. HTH. Dave
 
Upvote 0
Try

=IF(INDEX(H:H,(ROWS(A$1:A1)-1)*2+2)="","",INDEX(H:H,(ROWS(A$1:A1)-1)*2+2))

DON'T change the A$1:A1 reference, it's not related to your data.
 
Upvote 0
What type of data is in column H, if it's text this can be simplified greatly

=T(INDEX(H:H,(ROWS(A$1:A1)-1)*2+2))
 
Upvote 0
Modify your formula like below and drag & fill

[A2]=IF(INDIRECT("H"&(ROW(A2)-1)*2)<>"",INDIRECT("H"&(ROW(A2)-1)*2),"")
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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