AVG Formula

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I am looking to write an AVG function that doesn't count
cells with zero's in it. The information is all in one
column. Some cells just habve no info. Can anyone help?


Thanks,
Steve
 
hmm.. doesnt work great with empty cells, does it?
try:

{=SUM(A$1:$A$5)/COUNT(IF(A$1:$A$5=0,"",A$1:$A$5))}


it's an array formula:
enter without the {} but close with ctrl-shift-enter
you'll see the {} in the formula bar.



keepITcool

< email : keepitcool chello nl (with @ and .) >
< homepage: http://members.chello.nl/keepitcool >
 
I am looking to write an AVG function that doesn't count
cells with zero's in it. The information is all in one
column. Some cells just habve no info. Can anyone help?


Thanks,
Steve

Use the array formula:

=AVERAGE(IF(rng<>0,rng))

To enter an array formula, hold down <ctrl><shift> while hitting <enter>. XL
will place brackets {...} around the formula.


--ron
 

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

Back
Top