Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to average data if in cells, but ignore blank cells. Paula Excel Worksheet Functions 4 July 1st 09 05:38 PM
Match Dates in Two Cells and Ignore subsequent Cells Rob Excel Discussion (Misc queries) 1 April 21st 09 04:32 AM
Count cells with numbers and ignore cells with errors WonderingaboutMicrosoft Excel Discussion (Misc queries) 6 December 10th 06 08:03 PM
How do I count cells with text but ignore cells with spaces? Husker87 Excel Discussion (Misc queries) 2 September 21st 06 12:31 AM
how can i ignore blank cells when multiple cells? arash Excel Worksheet Functions 4 November 17th 05 04:35 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"