#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 349
Default Average Formula Help

I need to find out how to have the average not count the 0's...
A1 12
A2 0
A3 12
A4 12
A5 0
A6 0
using =average the average is 6. I need the =avaerage not to count the zeos
and the average to be 12.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Average Formula Help

Maybe...

=sum(a1:a6) / countif(a1:a6,"<"&0)

Peter wrote:

I need to find out how to have the average not count the 0's...
A1 12
A2 0
A3 12
A4 12
A5 0
A6 0
using =average the average is 6. I need the =avaerage not to count the zeos
and the average to be 12.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Average Formula Help

=AVERAGE(IF(A1:A6,A1:A6))

This is an array formula.

Must be entered using CTRL + SHIFT + ENTER


Gord Dibben MS Excel MVP

On Tue, 16 Mar 2010 10:58:27 -0700, Peter
wrote:

I need to find out how to have the average not count the 0's...
A1 12
A2 0
A3 12
A4 12
A5 0
A6 0
using =average the average is 6. I need the =avaerage not to count the zeos
and the average to be 12.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Average Formula Help

I'll show 2 ways to do it, which you choose depends on your circumstances.
But based on what you've posted, I think the 1st way will work for you.

#1: this method gives the average of values GREATER THAN ZERO:
=SUMIF(A1:A6,"0",A1:A6) / COUNTIF(A1:A6,"0")

#2: this method will give you average of non-zero values, which can include
those greater than and/or less than zero, but not zero itself:
=SUMIF(A1:A6,"<0",A1:A6) / COUNTIF(A1:A6,"<0")



"Peter" wrote:

I need to find out how to have the average not count the 0's...
A1 12
A2 0
A3 12
A4 12
A5 0
A6 0
using =average the average is 6. I need the =avaerage not to count the zeos
and the average to be 12.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Average Formula Help

Hi

Try this array formula

=AVERAGE(IF(A1:A6<0,A1:A6))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Peter" wrote:

I need to find out how to have the average not count the 0's...
A1 12
A2 0
A3 12
A4 12
A5 0
A6 0
using =average the average is 6. I need the =avaerage not to count the zeos
and the average to be 12.

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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Average Formula mmmiller Excel Discussion (Misc queries) 1 July 25th 06 09:52 PM
formula average Melle Excel Discussion (Misc queries) 3 October 6th 05 03:20 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
Average Formula Vinaya Excel Worksheet Functions 1 October 29th 04 01:53 PM


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