Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default AVERAGE - Disregard zero and numbers over 60?

I need to compute averages of several rows of numbers. Every cell contains
a number. None are negative.

I want the average to disregard '0' and any number over 60.

Thanks in advance.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default AVERAGE - Disregard zero and numbers over 60?

Use an array** formula like this:

=AVERAGE(IF((A2:A6<0)*(A2:A6<60),A2:A6))

**Array formulas must be confirmed using Ctrl+Shift+Enter, not just Enter
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Ted" wrote:

I need to compute averages of several rows of numbers. Every cell contains
a number. None are negative.

I want the average to disregard '0' and any number over 60.

Thanks in advance.



.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default AVERAGE - Disregard zero and numbers over 60?

"Ted" wrote:
I need to compute averages of several rows of numbers.
Every cell contains a number. None are negative.
I want the average to disregard '0' and any number over 60.


I presume by '0', you really mean the number zero, not the text "0".

Try this array formula[*]:

=average(if((0<A1:A100)*(A1:A100<=60),A1:A100))

The "*" functions as AND. You cannot use the AND function itself in this
context.
[*] An array formula is committed by pressing ctrl+shift+Enter instead of
just Enter. You should see curly braces around the entire formula in the
Formula Bar, e.g. {=formula}. You cannot enter the curly braces yourself;
Excel inserts them to denote an array formula. If you make a mistake,
select the cell, press F2, edit as needed, and finally press
ctrl+shift+Enter.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default AVERAGE - Disregard zero and numbers over 60?

Perfect! Thank you both for your help!

"Joe User" <joeu2004 wrote in message
...
"Ted" wrote:
I need to compute averages of several rows of numbers.
Every cell contains a number. None are negative.
I want the average to disregard '0' and any number over 60.


I presume by '0', you really mean the number zero, not the text "0".

Try this array formula[*]:

=average(if((0<A1:A100)*(A1:A100<=60),A1:A100))

The "*" functions as AND. You cannot use the AND function itself in this
context.

[*] An array formula is committed by pressing ctrl+shift+Enter instead of
just Enter. You should see curly braces around the entire formula in the
Formula Bar, e.g. {=formula}. You cannot enter the curly braces yourself;
Excel inserts them to denote an array formula. If you make a mistake,
select the cell, press F2, edit as needed, and finally press
ctrl+shift+Enter.


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
average a continuous group of numbers and negative numbers are 0 Dumbfounded Excel Worksheet Functions 3 October 15th 08 11:53 PM
CSE formula disregard blank cells pdberger Excel Worksheet Functions 5 January 9th 08 09:05 PM
disregard earlier post Jenny B. Excel Discussion (Misc queries) 2 March 22nd 07 06:11 PM
disregard a cell on occasion when there is text in it instead of V Gilles St-Amour Excel Worksheet Functions 5 November 13th 06 06:25 PM
how to disregard the DIV in a range CMAC Excel Worksheet Functions 5 January 20th 05 04:43 AM


All times are GMT +1. The time now is 03:39 AM.

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"