Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default AVERAGE with conditions

I have a column of numbers (zero to 99) that i want the average of the
numbers that are more than zero. Any idea on how to do that the best way???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default AVERAGE with conditions

Try one of these:

Normally entered:

=SUM(A1:A10)/COUNTIF(A1:A10,"0")

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

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

Biff

"mr_concrete" wrote in message
...
I have a column of numbers (zero to 99) that i want the average of the
numbers that are more than zero. Any idea on how to do that the best
way???



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default AVERAGE with conditions

=SUM(A1:A100)/(SUMPRODUCT((A1:A100<0)*1))

try this and alter range to suit

"mr_concrete" wrote:

I have a column of numbers (zero to 99) that i want the average of the
numbers that are more than zero. Any idea on how to do that the best way???

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default AVERAGE with conditions

=AVERAGE(IF(A1:A1000, A1:A100,""))

This is an array formula. Use CTRL + SHIFT + ENTER to enter it in A101

If done properly, Excel will place { } around the formula.


Gord Dibben MS Excel MVP

On Wed, 7 Feb 2007 11:54:01 -0800, mr_concrete
wrote:

I have a column of numbers (zero to 99) that i want the average of the
numbers that are more than zero. Any idea on how to do that the best way???


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
Conditional Average (2 conditions) kayard Excel Worksheet Functions 3 August 12th 06 12:32 AM
Using AVERAGE with conditions in different worksheets? mommy2kh Excel Worksheet Functions 1 July 16th 06 11:16 PM
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
average on 2 conditions Ted Metro Excel Worksheet Functions 6 January 7th 05 08:23 PM


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