getting rid of a #Div/0! error

  • Thread starter Thread starter StephenAccountant
  • Start date Start date
S

StephenAccountant

here is my formula - it is an array formula.

=AVERAGE(IF(D9:G9<>0,D9:G9))

if the cells all show up as blank or nil - i get a #Div/0! error - how can I
stop that from happening?
 
=iF(COUNT(D9:G9)>0,AVERAGE(IF(D9:G9<>0,D9:G9)),"")
too late for me to test it!
best wishes
 
here is my formula - it is an array formula.

=AVERAGE(IF(D9:G9<>0,D9:G9))

if the cells all show up as blank or nil - i get a #Div/0! error - how can I
stop that from happening?

how about putting the IF statement outside the average statement? it
worked for me, but it returned 0 when even one of the cells in that
range were 0. is that what you want? if it is, then it worked for
me! don't know why it didn't work for you.
 

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

Similar Threads

help with a formula 2
how to hide #DIV/0! 6
#div/0 error 2
#DIV/0! error 1
Need Formula Help 1
iserror problem 9
#DIV/0 error 2
Another DIV/0 Error 2

Back
Top