View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Average-Range Change Each Month

modify this to suit your needs and array enter by ctrl+shift+enter

=AVERAGE(IF((MONTH(daterng)=1)*(MONTH(daterng)<MO NTH(TODAY())),sumrange))

--
Don Guillett
SalesAid Software

"Jani" wrote in message
...
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!