S
seth
I have a dataset that contains samples from different treatments for
various sample points at different sample dates. There are 4
treatments, 36-40 sample points, and 4 sample dates. What I would
like to do is group the samples by treatment, sample point, and sample
date and then find the range of values for each sample point on that
sample date. From this range of values I then need to identify the
top twenty percent and assign those samples to class "a", the second
twenty percent and assign to class "b", the third twenty percent
assigned to class "c", and the last forty percent assigned to class
"d". The problem that I am running into is that each sample point has
a different number of samples so I cannot use a set number of rows to
define the range of cells for each sample point. Since I am not
fluent in VB, I am struggling with this issue and would appreciate any
help.
To recap: I need to be able to write a macro that can match the 1st 3
columns (treatment, sample point, sample date) and then identify the
range of values for the sample point and assign categories based on
the above criteria for each sample.
various sample points at different sample dates. There are 4
treatments, 36-40 sample points, and 4 sample dates. What I would
like to do is group the samples by treatment, sample point, and sample
date and then find the range of values for each sample point on that
sample date. From this range of values I then need to identify the
top twenty percent and assign those samples to class "a", the second
twenty percent and assign to class "b", the third twenty percent
assigned to class "c", and the last forty percent assigned to class
"d". The problem that I am running into is that each sample point has
a different number of samples so I cannot use a set number of rows to
define the range of cells for each sample point. Since I am not
fluent in VB, I am struggling with this issue and would appreciate any
help.
To recap: I need to be able to write a macro that can match the 1st 3
columns (treatment, sample point, sample date) and then identify the
range of values for the sample point and assign categories based on
the above criteria for each sample.