Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
fodman
 
Posts: n/a
Default Calculating Averages but excluding zero's


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

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Elkar
 
Posts: n/a
Default Calculating Averages but excluding zero's

Try this:

=AVERAGE(IF(A1:A60,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


  #3   Report Post  
Posted to microsoft.public.excel.newusers
Ragdyer
 
Posts: n/a
Default Calculating Averages but excluding zero's

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" wrote in
message ...

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
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
Calculating weighted averages rgl Excel Discussion (Misc queries) 6 February 22nd 06 06:15 PM
Calculating averages excluding outliers...a question stew1901 Excel Worksheet Functions 4 November 29th 05 01:38 AM
Calculating basic averages...a question stew1901 Excel Worksheet Functions 5 November 29th 05 12:29 AM
calculating averages Golf Averages Excel Discussion (Misc queries) 1 August 15th 05 08:25 PM
EXcluding Zeros from the average in a row Geo Excel Discussion (Misc queries) 4 December 31st 04 04:07 PM


All times are GMT +1. The time now is 09:44 AM.

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"