View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Average Less a Month

Try something like this.
=sumproduct((month(a2:a22)=1)*(month(a2:a22)<mont h(today())-1)*b2:b22)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jani" wrote in message
...
I have 12 months worth of previous year's data in Excel (January-December)
but only want to graph certain months data. Not sure how to explain this.
If
the current month is October, than I want to pull data from
January-August;
if current month is December, than I want to pull data from
January-October.
Does anyone know how I can do this with a formula? I've exhausted my
limited
knowledge and not had any success.

Thank you!
Jani