ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to sum cells and ignore the #div/0! 's ? (https://www.excelbanter.com/excel-worksheet-functions/258963-how-sum-cells-ignore-div-0-s.html)

Bryan

how to sum cells and ignore the #div/0! 's ?
 
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?

David Biddulph[_2_]

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?




Mike H

how to sum cells and ignore the #div/0! 's ?
 
Hi,

=IF(COUNT(C8:E8)0,SUM(C8:E8)/COUNTIF(C8:E8,"0"),"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Bryan" wrote:

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?


Teethless mama

how to sum cells and ignore the #div/0! 's ?
 
=IF(COUNT(C8:E8)0,SUM(C8:E8)/COUNTIF(C8:E8,"0"),"")

your formula fail if
C8: 0, D8: blank, C8: blank, or all 0s or 0,0, blank

Robust formula:
=IF(COUNTIF(C8:E8,"0"),SUM(C8:E8)/COUNTIF(C8:E8,"0"),"")

"Mike H" wrote:

Hi,

=IF(COUNT(C8:E8)0,SUM(C8:E8)/COUNTIF(C8:E8,"0"),"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Bryan" wrote:

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?



All times are GMT +1. The time now is 04:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com