Average Functin

T

Todd

How do you average a column that contains formulas, when some of the formula
results are zero?
 
D

Dave F

I'm assuming you want to ignore 0 values?

In that case, =SUM(A1:A10)/COUNTIF(A1:A10,">0")

This divides the sum of A1:A10 by the count of values in A1:A10 which are
greater than zero.

Dave
 
4

4pinoy

Nielz....when the divisor consider the count of negative number, then the
zero must be included in the count for the divisor....what do you think?
 
T

Todd

Thanks a lot. It worked.
--
Todd


Dave F said:
I'm assuming you want to ignore 0 values?

In that case, =SUM(A1:A10)/COUNTIF(A1:A10,">0")

This divides the sum of A1:A10 by the count of values in A1:A10 which are
greater than zero.

Dave
 
4

4pinoy

Tod this one assumes the average of formula result (not considering
#N/A,#DIV...etc)

Formula Result assumed only with some blank(""), some zero (0), and some
(+/-) numbers..

simply...=sum(a1:a10)/counta(a1:a10)
 
Top