Array formula

R

Ray

Hi,
I have a list of numbers and I want the average not
counting the 0.00 in the range.
a
12
15
19
0
101
150
0
52
67
122
Now my formula is
{=average(if($a$1:$a$10<>0,$a$1:$a$10,0))}
This will sum to 538 and average to 53.8
The result I am looking for is sum 538/8 or 67.25
Where is my error??
TIA
ray
 
B

Bernie Deitrick

Ray,

Leave off that last ",0": array enter (using Ctrl-Shift-Enter)

=AVERAGE(IF(A1:A10<>0,A1:A10))

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top