Mod a Formula For Errors

G

Guest

I'm trying to modify this formula so that it does the calculation even if
some of the cells in the ranges do not have "values (N/A or other errors).
Thanks you in advance.

=SUMPRODUCT(--($C$3:$C$216=I3);--($F$3:$F$216>0))/COUNTIF($C$3:$C$216;I3)
 
G

Guest

You can force it to be zero with an if statement like so:

=IF(ISERROR(SUMPRODUCT(--($C$3:$C$216=I3)--($F$3:$F$216>0))/COUNTIF($C$3:$C$216,I3)),0,SUMPRODUCT(--($C$3:$C$216=I3)--($F$3:$F$216>0))/COUNTIF($C$3:$C$216,I3))
 

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