Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default How do I hide a divide by zero error from an average formula?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I hide a divide by zero error from an average formula?

=if(count(a1:a10)=0,"No numbers",average(a1:a10))

is one way.

Julia wrote:

--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default How do I hide a divide by zero error from an average formula?

To return a zero rather than #DIV/0!

=SUM(A1:A10)/MAX(1,COUNT(A1:A10))

"Dave Peterson" wrote:

=if(count(a1:a10)=0,"No numbers",average(a1:a10))

is one way.

Julia wrote:

--

Dave Peterson

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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Function Key for Calculating Average? robin Excel Worksheet Functions 17 November 2nd 06 11:47 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Need to average a range AND calc a formula at once... S Davis Excel Worksheet Functions 1 June 23rd 06 11:16 PM
Average Formula with Criteria PW11111 Excel Discussion (Misc queries) 1 June 10th 05 02:22 PM


All times are GMT +1. The time now is 01:09 PM.

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

About Us

"It's about Microsoft Excel"