Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Spartacus
 
Posts: n/a
Default Summing moving ranges & dates

I have data laid out as shown below:

Jan-04 Feb-04 --------- --------- --------- Jan-05 Feb-05
6,942.0 6,721.0 --------- --------- --------- 7,605.0 7,171.0

What I'm trying to do is have Excel calculate the 13 Month average for each
row of data - for example, if the current month is Jan-05 then the desired
result would be to sum the values from Jan-05 through Jan-04 and divide by
13. The "Month-Yr" column labels are formatted exactly as they appear above.

Can someone help solve this? Any assistance provided would be greatly
appreciated. Thanks.
  #2   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

Try something like:

AVERAGE(M2:OFFSET(M2,0,-12))

where M2 contains the data for the last month in the target period.

--

Vasant


"Spartacus" wrote in message
...
I have data laid out as shown below:

Jan-04 Feb-04 --------- --------- --------- Jan-05 Feb-05
6,942.0 6,721.0 --------- --------- --------- 7,605.0 7,171.0

What I'm trying to do is have Excel calculate the 13 Month average for
each
row of data - for example, if the current month is Jan-05 then the desired
result would be to sum the values from Jan-05 through Jan-04 and divide by
13. The "Month-Yr" column labels are formatted exactly as they appear
above.

Can someone help solve this? Any assistance provided would be greatly
appreciated. Thanks.



  #3   Report Post  
Spartacus
 
Posts: n/a
Default

Vasant - your suggestion worked beautifully, however, due to the fact that
I'd be applying this to a large number of cells in several worksheets I'd
like to somehow be able to automate the "M2" reference to pickup the data
associated with whatever the current month is.

Thanks in advance for your input and suggestions.


"Vasant Nanavati" wrote:

Try something like:

AVERAGE(M2:OFFSET(M2,0,-12))

where M2 contains the data for the last month in the target period.

--

Vasant


"Spartacus" wrote in message
...
I have data laid out as shown below:

Jan-04 Feb-04 --------- --------- --------- Jan-05 Feb-05
6,942.0 6,721.0 --------- --------- --------- 7,605.0 7,171.0

What I'm trying to do is have Excel calculate the 13 Month average for
each
row of data - for example, if the current month is Jan-05 then the desired
result would be to sum the values from Jan-05 through Jan-04 and divide by
13. The "Month-Yr" column labels are formatted exactly as they appear
above.

Can someone help solve this? Any assistance provided would be greatly
appreciated. Thanks.




  #4   Report Post  
Vasant Nanavati
 
Posts: n/a
Default

How would you define the "data associated with the current month?"

Computers are dumb; you have to give them pretty precise instructions. Is it
the second row in the column headed with the month immediately past? What is
the format (text or date)? Etc.

--

Vasant


"Spartacus" wrote in message
...
Vasant - your suggestion worked beautifully, however, due to the fact that
I'd be applying this to a large number of cells in several worksheets I'd
like to somehow be able to automate the "M2" reference to pickup the data
associated with whatever the current month is.

Thanks in advance for your input and suggestions.


"Vasant Nanavati" wrote:

Try something like:

AVERAGE(M2:OFFSET(M2,0,-12))

where M2 contains the data for the last month in the target period.

--

Vasant


"Spartacus" wrote in message
...
I have data laid out as shown below:

Jan-04 Feb-04 --------- --------- --------- Jan-05 Feb-05
6,942.0 6,721.0 --------- --------- --------- 7,605.0 7,171.0

What I'm trying to do is have Excel calculate the 13 Month average for
each
row of data - for example, if the current month is Jan-05 then the
desired
result would be to sum the values from Jan-05 through Jan-04 and divide
by
13. The "Month-Yr" column labels are formatted exactly as they appear
above.

Can someone help solve this? Any assistance provided would be greatly
appreciated. Thanks.






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
How do I chart date ranges with varying start and finish dates? projectplanner Charts and Charting in Excel 4 May 1st 05 11:36 PM
How do I count cells in a column of dates between date ranges? Andrew82 Excel Worksheet Functions 2 April 14th 05 09:59 AM
Formula that will count between dates ranges jbsand1001 Excel Worksheet Functions 4 April 1st 05 11:41 PM
Formula that will count between dates ranges jbsand1001 Excel Worksheet Functions 0 March 7th 05 06:41 PM
Moving dates between worksheets SuperDad Excel Discussion (Misc queries) 3 February 23rd 05 07:35 PM


All times are GMT +1. The time now is 12:14 PM.

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

About Us

"It's about Microsoft Excel"