Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default calculating moving average

Hello,

I am trying to calculate a moving average for stock quotes. The problem
is that the time interval is not continuous. I get for example at
11.55.33 a stock quote the next one can be at 11.56.21 and the next at
12.00.21. I want to copy the stock quotes at certain time intervals. So
for example copy the stock quote at every 5 minutes. Save them and than
calculate a moving average. Can anybody help me please?

Kind regards,

John

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default calculating moving average

Assuming your 2 columns of data (timestamp, value) are in columns A and B

D1 : desired interval (00:05:00)
E1: = start time (eg 11:30:00)
E2: =E1+$D$1
fill down
F1: =VLOOKUP(A1:B999;E1;2;TRUE)
fill down
G1: =AVERAGE(F$1:F1)
fill down

See example: http://cjoint.com/?fomlIQWtNp

HTH
--
AP

a écrit dans le message de news:
...
Hello,

I am trying to calculate a moving average for stock quotes. The problem
is that the time interval is not continuous. I get for example at
11.55.33 a stock quote the next one can be at 11.56.21 and the next at
12.00.21. I want to copy the stock quotes at certain time intervals. So
for example copy the stock quote at every 5 minutes. Save them and than
calculate a moving average. Can anybody help me please?

Kind regards,

John



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 Average projection? Wild Nerd Excel Worksheet Functions 6 March 21st 06 01:55 PM
Calculating an average based on 2 and 3 criteria craggergirl Excel Worksheet Functions 2 February 24th 06 02:37 PM
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM
calculating moving average odey1234 Excel Worksheet Functions 2 March 29th 05 02:06 PM
Plotting moving average line on a chart Herbert Chan Charts and Charting in Excel 1 February 26th 05 08:31 PM


All times are GMT +1. The time now is 10:10 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"