tractorvix
Technical User
Hi all,
I hope you'll be able to help me. I've got a data set that is added to each day and I need to dynamically be able to calculate an average over a specific time period
eg:
11/05/2009 10.0
12/05/2009 10.0
13/05/2009 10.0
14/05/2009 10.0
16/05/2009 10.0
18/05/2009 5.0
19/05/2009 5.0
average for last 5 days is 8
but adding
20/05/2009 20.0
average for last 5 days is 10.
I was hoping to use an offset function but I need to dynamically reference the starting point, so if I wanted to find the average for the 5 days prior to the 18/05/2009 (so output of 10) I could.
Am I making any sense??!!
I'm sure there some reference / index /column type formula which will enable me to find the starting point, but I just can't seem to get my head around it!
Thanks for your help
I hope you'll be able to help me. I've got a data set that is added to each day and I need to dynamically be able to calculate an average over a specific time period
eg:
11/05/2009 10.0
12/05/2009 10.0
13/05/2009 10.0
14/05/2009 10.0
16/05/2009 10.0
18/05/2009 5.0
19/05/2009 5.0
average for last 5 days is 8
but adding
20/05/2009 20.0
average for last 5 days is 10.
I was hoping to use an offset function but I need to dynamically reference the starting point, so if I wanted to find the average for the 5 days prior to the 18/05/2009 (so output of 10) I could.
Am I making any sense??!!
I'm sure there some reference / index /column type formula which will enable me to find the starting point, but I just can't seem to get my head around it!
Thanks for your help