fixed interval sampling

  • Thread starter Thread starter Piers Clinton-Tarestad
  • Start date Start date
P

Piers Clinton-Tarestad

does anyone know where I can get some sample code on fixed interval
sampling?
I'm looking to design a macro which will basically sample some data and put
the sample in a separate sheet
cheers
Piers
 
j = 1
for i = 20 to 2000 step 200
cells(i,"A").EntireRow.copy Destination:=activesheet.next.Cells(j,A")
j = j + 1
Next
 
tom thats really useful
the only thing is i want the interval to be based on the cumlative total of
a column

for example if the cells contain the following numbers

a1-5
a2-10
a3-5
a4-6

and the interval is 10 i want it to pick a2 as 10 is reached by adding a1
and a2 and then to pick a3 as there is 5 left over from a1 and a2 and this
with a3 gives the next 10

doubt this makes any sense but hey!
 

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