hatman
Well-known Member
- Joined
- Apr 8, 2005
- Messages
- 2,664
Anyone who has glanced at my profile has probably noticed that in addition to my day job, I also have a blueberry farm at home. It's a fun sideline that I inheritted from my grandfather when he passed away several years ago. And 500 bushes is enough that I not only take the work, but also the profit seriously. For those of you interested in what 500 blueberry bushes look like, here's some aerial photography.
Being the engineering geek that I am, this spring I started building an Excel File to track and trend various factors in the business (if you can call it that). The biggest concern for me is the amount of water that I provide for the crop. The requirements for watering is expressed as 1-2 inches for each 7 day period. Calculating a running sum of the previous seven days is no problem... and I have what seems to be a satisfactory method of calculating how long I should run the sprinklers each night to provide a minimum of 1 inch of water by the end of a running 7 day period. As anything of this nature goes, I have been tweaking my prediction algorithms as I get more historical data.
Okay, so I'm finally getting closer to the point. I have enough historical data for this season so far that I want to get an idea of how well I have been sticking to the 1-2 inches of water per week. Using a helper column, I can easily create a list of values that represent the sum of each previous 7 day period (E11:E26), and then average that (E28). But I figure there should be some way to do this in a single CSE formula. But I'm at a loss. D28 has my best attempt... but it just returns the first member of the series. Obviously, there is something about this CSE formula that I'm missing... I was hoping that someone might be able to explain what I'm missing, and perhaps offer an alternative.
Eventually, I also want to expand this to utilize a dynamic range based on variable start and stop dates... but that's for next time
Being the engineering geek that I am, this spring I started building an Excel File to track and trend various factors in the business (if you can call it that). The biggest concern for me is the amount of water that I provide for the crop. The requirements for watering is expressed as 1-2 inches for each 7 day period. Calculating a running sum of the previous seven days is no problem... and I have what seems to be a satisfactory method of calculating how long I should run the sprinklers each night to provide a minimum of 1 inch of water by the end of a running 7 day period. As anything of this nature goes, I have been tweaking my prediction algorithms as I get more historical data.
Okay, so I'm finally getting closer to the point. I have enough historical data for this season so far that I want to get an idea of how well I have been sticking to the 1-2 inches of water per week. Using a helper column, I can easily create a list of values that represent the sum of each previous 7 day period (E11:E26), and then average that (E28). But I figure there should be some way to do this in a single CSE formula. But I'm at a loss. D28 has my best attempt... but it just returns the first member of the series. Obviously, there is something about this CSE formula that I'm missing... I was hoping that someone might be able to explain what I'm missing, and perhaps offer an alternative.
Eventually, I also want to expand this to utilize a dynamic range based on variable start and stop dates... but that's for next time
Book1 | ||||||
---|---|---|---|---|---|---|
C | D | E | F | |||
5 | 06/01/07 | 0.125 | ||||
6 | 06/02/07 | 0.0625 | ||||
7 | 06/03/07 | 0.25 | ||||
8 | 06/04/07 | 0.5 | ||||
9 | 06/05/07 | 0.0625 | ||||
10 | 06/06/07 | |||||
11 | 06/07/07 | 0.3 | 1.3 | |||
12 | 06/08/07 | 0.4 | 1.575 | |||
13 | 06/09/07 | 1.5125 | ||||
14 | 06/10/07 | 0.125 | 1.3875 | |||
15 | 06/11/07 | 0.25 | 1.1375 | |||
16 | 06/12/07 | 0.25 | 1.325 | |||
17 | 06/13/07 | 0.2 | 1.525 | |||
18 | 06/14/07 | 2 | 3.225 | |||
19 | 06/15/07 | 2.825 | ||||
20 | 06/16/07 | 2.825 | ||||
21 | 06/17/07 | 0.125 | 2.825 | |||
22 | 06/18/07 | 0.0625 | 2.6375 | |||
23 | 06/19/07 | 0.125 | 2.5125 | |||
24 | 06/20/07 | 0.25 | 2.5625 | |||
25 | 06/21/07 | 0.25 | 0.8125 | |||
26 | 06/22/07 | 0.3 | 1.1125 | |||
27 | ||||||
28 | 1.3 | 1.94375 | ||||
Sheet1 |