#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Average

When I use the average function, I want to ignore values like $0.00, #DIV/0!.
How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Average

If you don't want to include zero it doesn't make any sense to include
negative values and then this will work

=SUMIF(A2:A10,"0",A2:A10)/COUNTIF(A2:A20,"0")


although it is advisable to correct the div error in it's source like

=IF(D2=0,"",C2/D2)


--


Regards,


Peo Sjoblom


"Mike" wrote in message
...
When I use the average function, I want to ignore values like $0.00,
#DIV/0!.
How do I do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Average

One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=AVERAGE(IF(ISNUMBER(IF(rng<0,rng)),rng))

where rng is your range of interest.

In article ,
Mike wrote:

When I use the average function, I want to ignore values like $0.00, #DIV/0!.
How do I do this?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Average

This answer was extremely helpful. I didn't have to use the average
function, because I cleared up this issues the division issues. Thank you
for being so attentive and detailed.

"Peo Sjoblom" wrote:

If you don't want to include zero it doesn't make any sense to include
negative values and then this will work

=SUMIF(A2:A10,"0",A2:A10)/COUNTIF(A2:A20,"0")


although it is advisable to correct the div error in it's source like

=IF(D2=0,"",C2/D2)


--


Regards,


Peo Sjoblom


"Mike" wrote in message
...
When I use the average function, I want to ignore values like $0.00,
#DIV/0!.
How do I do 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
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
average cells, show 0 if nothing to average Kycajun Excel Discussion (Misc queries) 8 June 21st 06 07:36 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 12:05 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"