help with ISERR formulas

S

Sharon

I have a formula that I need to take a list of totals and
show the average minus any zero values - if there are no
numbers I need it to show a 0 value in the cell where the
formula is - right now if the column has all 0 values I am
getting the #DIV/0! error - please help - here is an
example of what I have:

=IF(ISERR(V2:V16),(SUM(V2:V16)/COUNTIF(V2:V16,"<>0")),0)
 
K

Kevin H. Stecyk

Sharon,

I think you were very close.

=IF(SUM(V2:V16)<>0,(SUM(V2:V16)/COUNTIF(V2:V16,"<>0")),0)

Hope this helps.

Regards,
Kevin
 
G

Guest

Thanks! That was perfect!
-----Original Message-----
Sharon,

I think you were very close.

=IF(SUM(V2:V16)<>0,(SUM(V2:V16)/COUNTIF(V2:V16,"<>0")),0)

Hope this helps.

Regards,
Kevin
 

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