Formula for giving multiple results

New Contributor

I am trying to modify the following formula so that if all cells have 0 entered in them the result will be NA otherwise it will calculate the accuracy rate; Currently it shows #DIV/0! if all the cells are 0






I greatly appreciate any help! I have tried various ways with IF but nothing is working and I am sure it must be able to be done LOL


4 Replies


Wrap your formula with IFERROR, like this:



@Twifoo I can't thank you enough! I knew there had to be something I was missing. I greatly appreciate your help with this Have a wonderful day!


I'm delighted to have helped you.



You are getting error #DIV/0!, because you have ignored the basics,,  Excel shows the #DIV/0error when a number is divided by zero, or when a formula refers to a cell that has 0 or is blank, as shown in this screen shot you have ZERO in T2,V2, & in U2 also, just below formula works properly since has few values are greater than Zero !! 


And to trap the error, you may use IFERROR built in function.