A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old March 15th, 2010, 07:46 PM posted to microsoft.public.excel.worksheet.functions
Bryan
external usenet poster
 
Posts: 344
Default 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?
  #2  
Old March 15th, 2010, 08: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?



  #3  
Old March 15th, 2010, 08:25 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default 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?

  #4  
Old March 15th, 2010, 08:43 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default 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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.