function for average without zero

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I'd like to create a function that would calculate the average without the
zero(s)?

Thanks in advance.

kml
 
There are two solutions:

1. replace the zeros with blanks. AVERAGE will ignore blanks

2. use SUMIF() divided by COUNTIF() excluding zeros in each of the functions
 
=average(if((A1:A10<>0,A1:A10,"")
array entered (ctl, shift, enter)

should do what you need

hth RES
 

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