ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Averaging data across a date range (https://www.excelbanter.com/excel-worksheet-functions/251317-averaging-data-across-date-range.html)

barry

Averaging data across a date range
 
I am trying to calculate moving averages based on date ranges determined by
the user, i.e. the user sets the date as say 12.01.2009 and the spreadsheet
autocalculates the 1 year, 3 year, 5 year, 10 year and 20 year moving
average.

My problem is determining how to get the system to automatically set a range
based on the date selected, i.e. if user sets 12.01.2009 as the date it picks
up values in the range to average for say the last 12 months back to
12.01.2008 as an example and calculates the average over that range.

Any help welcome.

Bernard Liengme

Averaging data across a date range
 
Are the dates sequential?
One for each month?
What version of Excel (in Excel 2007 AVERAGEIFS might be useful)
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"Barry" wrote in message
...
I am trying to calculate moving averages based on date ranges determined
by
the user, i.e. the user sets the date as say 12.01.2009 and the
spreadsheet
autocalculates the 1 year, 3 year, 5 year, 10 year and 20 year moving
average.

My problem is determining how to get the system to automatically set a
range
based on the date selected, i.e. if user sets 12.01.2009 as the date it
picks
up values in the range to average for say the last 12 months back to
12.01.2008 as an example and calculates the average over that range.

Any help welcome.




All times are GMT +1. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com