OK, As I had begun looking at this anyway, I did the typing.
Reference the following picture when reading the following description:
treatment.png
I need one helper column F for the averaged raw data for each treatment and a second helper column G for the standard deviation of the raw date for each treatment.
Average in column-F is calculated as follows in F2 and copied down
Standard deviation is calculated in column-G As there is no StddevIF formula I use row numbers to determine the correct range of cells to use for the stddev. This works only because each treatment is always exactly 15 rows long. TitleRows is a named cell K1 set to 1, because I wanted to make this easy to change as I don't know the OP's desired layout.
In G2 and copied down:
Column-C gets "G" if the raw data is within 1.5 standard deviations from the average, "B" otherwise. In C2 and copied down:
Column-D simply gets only the data that is within 1.5 standard deviations from the average. In D2 and copied down:
Column-E provides an average of the data that is within 1.5 standard deviations from the average for each set of five rows. Again, row numbers are used to determine where this column should be blank and where an average should be displayed. In E2 and copied down:
That's it! See the attached workbook
Bookmarks