View Single Post
  #2  
Old March 15th, 2010, 07:08 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default how to sum cells and ignore the #div/0! 's ?

=IF(COUNTIF(C8:E8,"0")=0,"",SUM(C8:E8)/COUNTIF(C8:E8,"0"))
--
David Biddulph

"Bryan" wrote in message
...
I an working with the following formula: =SUM(C8:E8)/COUNTIF(C8:E8,"0")
if I
initially have no data entered i get the #div/0! 's is there a fix for
this?