AVERAGE with conditions

M

mr_concrete

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???
 
T

T. Valko

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
 
G

Gord Dibben

=AVERAGE(IF(A1:A100>0, 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
 
Top