Selecting and copying from a list

  • Thread starter Thread starter shennigan
  • Start date Start date
S

shennigan

How does one efficiently choose from one list and create another in Excell.

Example ( Choosing every 4th set of data pairs)
when like this in a spreadsheet
96 121



96.5 110




97 109



to look like this
96 121
96.5 110
97 109
 
Hi,

I'm not clear whether these data pairs are in the same cell so we'll start
with this

=INDEX($A$1:$A$1000,ROWS($A$1:$A1)*4)

The above formula extracts the data from row 4 of column A drag down 1 row
for row 8 etc.

Mike
 
something like
Sub copyevery4th()
For i = 1 To Cells(Rows.Count, "a").End(xlUp).Row Step 4
dlr = Cells(Rows.Count, "b").End(xlUp).Row + 1
Cells(i, "a").Copy Cells(dlr, "b")
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top