Average-Range Change Each Month

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Need some quick help! In spread sheets the data is already entered for 2005
by months. I need a formula to average YTD data for a given month end. For ex
if current month is April, need to average Jan-April, If cm is May, avg
Jan-Apr, if cm is June, avg Jan-May, etc. I tried an If statement but
apparently Excel won't allow that many IF's. As always, very much appreciate
your assistance!
 
modify this to suit your needs and array enter by ctrl+shift+enter

=AVERAGE(IF((MONTH(daterng)>=1)*(MONTH(daterng)<MONTH(TODAY())),sumrange))
 
Let's say your data is set up the following way:

A B
1 Jan 3000
2 Feb 2000
3 Mar 4000
4 Apr 4300

In C1 enter the following'
C1: =AVERAGE(B$1:B1)
and copy down.

HTH,
Barb Reinhardt
etc.
 
Don - Thanks for the quick response but I don't understand the formula. Would
you explain please?
 
daterng might be $a$2:$a$200 with properly formatted dates
sumrange might be $b$2:$b$200
enter the formula by holding down the ctrl key &the shift at the same time
as you touch the enter key.
 
Back
Top