View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
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?