• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

#DIV0 error

Matt_Straya

Member
Hi,
I have a problem and I guess the solution is staring me right in the face.

In column E I have a list of numbers representing days. In column H I have a countif formula that needs to be divided by the corresponding cell value in coluimn E.

"=COUNTIF($H$7:$H$143,1)/E147"
I then format this to give me a percentage. However, I cant get rid of the #DIV0 error and Id just like it to be 0%.

I have attached a copy of what I am trying to do - cells high-lighted in yellow.

If someone could point me in the right direction Id be grateful!
Cheers
 

Attachments

  • DIV0_Error_MW.xls
    54.5 KB · Views: 4
Try,

In H147, formula copy across and down :

=IF($E147,COUNTIF(H$7:H$143,$D147)/$E147,"")

or (if you like error return 0),

=IF($E147,COUNTIF(H$7:H$143,$D147)/$E147,0)

Regards
 

Attachments

  • DIV0_Error_MW.xls
    53 KB · Views: 8
Back
Top