Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Calculating moving average

I would like to calculate the 2-period moving average of a dataset in
A1:A20. I understand that this can be done by AVERAGE(A1:A2) and the
other moving averages will appear in the selected column when
"dragging" the formula to the other cells of the column. My problem is
that i would like to see the results diagonally instead of vertically
(B3,C4,D5,E6,F7 etc. instead of B3,B4,B5,B6,B7 etc.) Can somebody help
me?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Calculating moving average

Try

=AVERAGE(INDEX($A$1:$A$20,ROW()-1):INDEX($A$1:$A$20,ROW()))

In B3

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message
oups.com...
I would like to calculate the 2-period moving average of a dataset in
A1:A20. I understand that this can be done by AVERAGE(A1:A2) and the
other moving averages will appear in the selected column when
"dragging" the formula to the other cells of the column. My problem is
that i would like to see the results diagonally instead of vertically
(B3,C4,D5,E6,F7 etc. instead of B3,B4,B5,B6,B7 etc.) Can somebody help
me?



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
Calculating moving average [email protected] Excel Discussion (Misc queries) 1 April 4th 07 09:52 AM
calculating average with moving startpoint broer konijn Excel Discussion (Misc queries) 4 June 23rd 06 08:20 AM
calculating moving average [email protected] Excel Worksheet Functions 1 May 14th 06 11:13 AM
Moving average Hunterbo Charts and Charting in Excel 0 August 3rd 05 09:13 PM
calculating moving average odey1234 Excel Worksheet Functions 2 March 29th 05 02:06 PM


All times are GMT +1. The time now is 09:07 PM.

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"