Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Annualized rolling (moving) average

I am using the following formula to calculate an average of data for a
rolling 365 day period. Column A is the date, column B is Data

=((SUMPRODUCT(--($A$1:$A3<$A3),--($A$1:$A3=$A3-365),($B$1:$B3))))/(SUMPRODUCT(--($A$1:$A3<$A3)*--($A$1:$A3=$A3-365)))

Is there a simpler way to accomplish this?

How can I calculate the standard deviation for the same period?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Annualized rolling (moving) average

=AVERAGE(IF(($A$1:$A3<$A3)*($A$1:$A3=$A3-365),$B$1:$B3))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Hunter" wrote in message
...
I am using the following formula to calculate an average of data for a
rolling 365 day period. Column A is the date, column B is Data


=((SUMPRODUCT(--($A$1:$A3<$A3),--($A$1:$A3=$A3-365),($B$1:$B3))))/(SUMPRODU
CT(--($A$1:$A3<$A3)*--($A$1:$A3=$A3-365)))

Is there a simpler way to accomplish this?

How can I calculate the standard deviation for the same period?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Annualized rolling (moving) average

Thanks, I got it to work this time and I understand it better than the
sumproduct function. I don't know what happened the first time.

Thanks again!

"Bob Phillips" wrote:

=AVERAGE(IF(($A$1:$A3<$A3)*($A$1:$A3=$A3-365),$B$1:$B3))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Hunter" wrote in message
...
I am using the following formula to calculate an average of data for a
rolling 365 day period. Column A is the date, column B is Data


=((SUMPRODUCT(--($A$1:$A3<$A3),--($A$1:$A3=$A3-365),($B$1:$B3))))/(SUMPRODU
CT(--($A$1:$A3<$A3)*--($A$1:$A3=$A3-365)))

Is there a simpler way to accomplish this?

How can I calculate the standard deviation for the same period?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Weighted Average formula Ori Excel Discussion (Misc queries) 5 August 17th 06 11:03 PM
How to create a rolling 6 month average? anley Excel Discussion (Misc queries) 3 August 14th 06 12:41 PM
rolling average William Okumu Excel Worksheet Functions 5 May 25th 06 03:49 PM
Moving Average projection? Wild Nerd Excel Worksheet Functions 6 March 21st 06 01:55 PM
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM


All times are GMT +1. The time now is 10:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"