#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default AVERAGE function

I"m trying to usage the average function to average all numbers excluding 0.

Here's how i set up the function:
A B C D
7
8 JAN FEB MAR
9 Apples Bought 0 839 9,206

using this formula AVERAGE(IF(B9:D9<0,B9:D9,"")) the result should be
5022.5. This is what is shown when i click on the function bar to look at the
formula but on my spreadsheet it gives me and error #VALUE. Do you know why
this is?

FMMM



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default AVERAGE function

hi
the average function automaticly sums AND counts all value in a range
including zeros so you can't exclude zeros with the average function.
so.....create your own......

=IF(SUM(B9:D9)<0,SUM(B9:D9)/COUNTIF(B9:D9,"0"),"")

this would exclude zeros.

Regards
FSt1


"FMMM" wrote:

I"m trying to usage the average function to average all numbers excluding 0.

Here's how i set up the function:
A B C D
7
8 JAN FEB MAR
9 Apples Bought 0 839 9,206

using this formula AVERAGE(IF(B9:D9<0,B9:D9,"")) the result should be
5022.5. This is what is shown when i click on the function bar to look at the
formula but on my spreadsheet it gives me and error #VALUE. Do you know why
this is?

FMMM



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default AVERAGE function

FMMM wrote:
I"m trying to usage the average function to average all numbers excluding 0.

Here's how i set up the function:
A B C D
7
8 JAN FEB MAR
9 Apples Bought 0 839 9,206

using this formula AVERAGE(IF(B9:D9<0,B9:D9,"")) the result should be
5022.5. This is what is shown when i click on the function bar to look at the
formula but on my spreadsheet it gives me and error #VALUE. Do you know why
this is?


Your formula should work just fine as an array formula. Commit it by
pressing Ctrl + Shift + Enter, not just Enter.

Here is a slightly simpler version:

=AVERAGE(IF(B9:D9<0,B9:D9))
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default AVERAGE function

Thanks so much. It worked by pressing ctrl, shift, enter.

"smartin" wrote:

FMMM wrote:
I"m trying to usage the average function to average all numbers excluding 0.

Here's how i set up the function:
A B C D
7
8 JAN FEB MAR
9 Apples Bought 0 839 9,206

using this formula AVERAGE(IF(B9:D9<0,B9:D9,"")) the result should be
5022.5. This is what is shown when i click on the function bar to look at the
formula but on my spreadsheet it gives me and error #VALUE. Do you know why
this is?


Your formula should work just fine as an array formula. Commit it by
pressing Ctrl + Shift + Enter, not just Enter.

Here is a slightly simpler version:

=AVERAGE(IF(B9:D9<0,B9:D9))

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
Is it possible to use address function in average function timothy.pi@gmail.com Excel Discussion (Misc queries) 8 December 18th 07 01:52 AM
AVERAGE function JRD Excel Worksheet Functions 8 September 11th 06 01:31 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 04:59 PM
I want to use the MATCH function with the AVERAGE function but I . Miguel Excel Worksheet Functions 2 April 23rd 05 06:29 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 07:23 PM


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