View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paul
 
Posts: n/a
Default formula help please

sumif()/countif(),same conditions
--
paul
remove nospam for email addy!



"Anthony" wrote:

I have this formula thta looks at cells A8:A427 for a date which is the same
as that in cell D1, and then sums all the coresponding cells from cells
S8:S247.
What I want is NOT the total sum of these cells in S8:S247 but the AVERAGE.

My formula I am using is

=AVERAGE(SUMIF(Stats!A8:A427,--TEXT(D1,"MYYYY"),Stats!R8:R427))

Can anybody explain where I am going wrong and/or suggest a new formula
many thanks