PC Review


Reply
Thread Tools Rate Thread

Calculating Averages but excluding zero's

 
 
fodman
Guest
Posts: n/a
 
      23rd Jun 2006

Hi,

i want to calculate the average of a column but exclude anyzeros in
that column.
For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
would be 2. (8/4) NOT (8/6)

Thanks.


--
fodman
------------------------------------------------------------------------
fodman's Profile: http://www.excelforum.com/member.php...o&userid=31941
View this thread: http://www.excelforum.com/showthread...hreadid=555103

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWxrYXI=?=
Guest
Posts: n/a
 
      23rd Jun 2006
Try this:

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

Enter this as an array formula. Use CTRL-SHIFT-ENTER instead of just Enter.

HTH,
Elkar


"fodman" wrote:

>
> Hi,
>
> i want to calculate the average of a column but exclude anyzeros in
> that column.
> For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
> would be 2. (8/4) NOT (8/6)
>
> Thanks.
>
>
> --
> fodman
> ------------------------------------------------------------------------
> fodman's Profile: http://www.excelforum.com/member.php...o&userid=31941
> View this thread: http://www.excelforum.com/showthread...hreadid=555103
>
>

 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      23rd Jun 2006
One way is with this *array* formula:

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

--
Array formulas must be entered with CSE, <Ctrl> <Shift > <Enter>, instead of
the regular <Enter>, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"fodman" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Hi,
>
> i want to calculate the average of a column but exclude anyzeros in
> that column.
> For example: If column A1 contained 2, 2, 0, 2, 2, 0 then the average
> would be 2. (8/4) NOT (8/6)
>
> Thanks.
>
>
> --
> fodman
> ------------------------------------------------------------------------
> fodman's Profile:
> http://www.excelforum.com/member.php...o&userid=31941
> View this thread: http://www.excelforum.com/showthread...hreadid=555103
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computing averages excluding values with no value =?Utf-8?B?al9qaW1lbmV6NDIw?= Microsoft Excel Worksheet Functions 2 1st Mar 2007 09:03 PM
Averages excluding zeros =?Utf-8?B?SmF5dGVl?= Microsoft Excel Misc 3 16th Jul 2006 04:26 PM
Calculating averages excluding outliers...a question stew1901 Microsoft Excel Worksheet Functions 4 29th Nov 2005 01:38 AM
Averages excluding #N/A =?Utf-8?B?cm1lbGxpc29u?= Microsoft Excel Misc 3 4th Oct 2005 11:17 AM
Averages in arrays excluding 0's Lara Shook Microsoft Excel Worksheet Functions 3 26th Oct 2003 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.