Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Making inputs for average formula dynamic

Hi All,

I am working on a workbook that requires prior 3 month average calculations each month for several rows. So lets say its July right now and Apr, May, June numbers are in columns A B and C. When I go into Aug, I want the forumla to calculate the average of B, C and D and so on for each new month.

Can any one help me with how I can make the inputs dynamic, so I dont have to update it each month. Assistance will be greatly appreciated.

Regards,
Sumaira
  #2   Report Post  
Junior Member
 
Posts: 11
Default

Quote:
Originally Posted by Sumaira View Post
Hi All,

I am working on a workbook that requires prior 3 month average calculations each month for several rows. So lets say its July right now and Apr, May, June numbers are in columns A B and C. When I go into Aug, I want the forumla to calculate the average of B, C and D and so on for each new month.

Can any one help me with how I can make the inputs dynamic, so I dont have to update it each month. Assistance will be greatly appreciated.

Regards,
Sumaira
In cell D1 enter =AVERAGE(A1:C1) Then drag the formula to the right. It will update to new location (in E1 it would read =AVERAGE(B1 : D1). So at the end of July you would type your new number in over the formula (D1) and august (E1) would have the average for may, june, july.

Hope this helps
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Making inputs for average formula dynamic

I am working on a workbook that requires prior 3 month average
calculations each month for several rows. So lets say its July right now
and Apr, May, June numbers are in columns A B and C. When I go into Aug,
I want the forumla to calculate the average of B, C and D and so on for
each new month.


If the numbers are in row 1 starting at A1, and if there are no gaps, and if future months' cells are empty, then maybe this meets the need:
=IF(COUNTA(1:1)<3,"not enough data",
AVERAGE(OFFSET(A1,0,COUNTA(1:1)-3,1,3)))
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
Help making this macro dynamic :) nagerpop Excel Programming 0 March 28th 10 06:35 PM
Making condition dynamic? aposatsk Excel Discussion (Misc queries) 3 August 16th 06 01:43 PM
Making a dynamic list?! mayerc Excel Discussion (Misc queries) 2 June 15th 06 03:47 PM
making autofill range dynamic sonang Excel Programming 0 September 1st 04 10:59 PM
Making a Dynamic List in Listbox MikeM[_4_] Excel Programming 2 December 16th 03 04:16 PM


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