Make Function ignore 0 and error values

  • Thread starter Thread starter AD108
  • Start date Start date
A

AD108

I am trying to make the average function ignore 0's and errors. The
following array formula works to ignore the 0's, but I got stuck trying to
make it ignore errors.

=AVERAGE(IF((G3:G20)<>0,G3:G20))

=AVERAGE(IF(AND((G3:G20)<>0,ISERROR(G3:G20)=FALSE),G3:G20))

Thanks in advance.
 
=AVERAGE(IF(ISERROR(G3:G20),"",IF(G3:G20<>0,G3:G20))

Array formula you have to commit ctrl>shift>enter (not just enter)
 

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