Thread: Average
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default Average

=SUMIF(A2:E2,"<0")/COUNTIF(A2:E2,"<0")

you can also use an array formula like


=AVERAGE(IF(2:2<0,2:2))

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"Matt" wrote in message
...
How can I get a average of a row without the cells that contain 0?