Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How to copy data from every 100th row?!

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to copy data from every 100th row?!

Macros are not needed. In R1 enter:
=F2
In R2 enter:
=INDIRECT("F"&100*(ROW()-1)+2) and copy down

this will get you data from F2, F102, F202, etc.
--
Gary''s Student - gsnu200759


"Jim" wrote:

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How to copy data from every 100th row?!

You can do it without a macro using


R1: =INDEX(F:F, (ROW()-1)*100+2)

copying down as far as required.

Or you could use a macro:

Public Sub FtoRby100s()
Dim i As Long
For i = 1 To (Cells(Rows.Count, 6).End(xlUp).Row - 1) / 100 + 1
Cells(i, 18).Value = Cells((i - 1) * 100 + 2, 6).Value
Next i
End Sub


In article ,
Jim wrote:

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How to copy data from every 100th row?!

hi
i'm confused. do you want just the data in the F column or all the data in
the row from f over to q?

Regards
FSt1

"Jim" wrote:

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks


  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How to copy data from every 100th row?!

Hi there - just the data in F column.
Thanks

"FSt1" wrote:

hi
i'm confused. do you want just the data in the F column or all the data in
the row from f over to q?

Regards
FSt1

"Jim" wrote:

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How to copy data from every 100th row?!

hi.
good. you were saying "rows". I took that to mean more than 1 column.
then you should be fixed up by JE and/or Gary

regards
FSt1

"Jim" wrote:

Hi there - just the data in F column.
Thanks

"FSt1" wrote:

hi
i'm confused. do you want just the data in the F column or all the data in
the row from f over to q?

Regards
FSt1

"Jim" wrote:

I have a spreadsheet (2003) that every month imports data from a weather
station €“ a sheet for each month. There are about 50,000 rows of data for
each month with 17 columns of data €“ temperature, wind speed etc.
What would like to do is have a macro start at say F2 €“ copy that data then
paste to say R1 €“ go back to F2 and move down say 100 rows and copy then
paste to R2 etc.
Any suggestions?!
Appreciate your help.
With thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel-Input numeric value in cell, it shows up as 1/100th of entry DarinMelin Excel Discussion (Misc queries) 2 October 31st 07 06:14 PM
Numbers displayed in the 100th decimal instead on 1,000 Newbee Excel Discussion (Misc queries) 6 August 17th 07 09:14 AM
How I keep the cells from becoming 1/100th of the value I enter? txgp17 Excel Discussion (Misc queries) 1 April 6th 06 07:38 PM
How can I enter 1/100th of a second into an Excel cell? Dalex Excel Discussion (Misc queries) 2 December 4th 05 10:50 AM
How do I stop Excel from changing simple numbers to their 1/100th. Chris C Excel Discussion (Misc queries) 1 December 14th 04 07:14 PM


All times are GMT +1. The time now is 12:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"