Hi everyone
I'm trying to work out the average for a range of values between specified dates and times. The data set contains values for a financial year, with a new value each half hour.
In my example I'm trying to find out the average of values between '01/04/2007 0:30' and '01/07/2001 0:00'. I need to do the same thing for each quarter (i.e., from 0:30 on the first day of every quarter to 0:00 of the first day of the next quarter)
The formula I'm trying to use is an array that goes like:
{=AVERAGE(IF([full range of dates]>=(start day of quarter+0:30),IF([full range of dates]<=(start day of next quarter+0:00),[range of values to average])))}
See the attached sheet for the formula in context.
Now the problem with this formula is that it almost works. It's about .02 or so out for many quarters across different years that I'm aggregating. Can anyone tell me what I need to do to make this work?
thanks
D
Bookmarks