• 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.

#DIV/0

GN0001

Member
I have made several dynamic charts, however, in some of the cells base on the value I select, I get #DIV/0, Is there any way in conditional formatting to give me 0, whenever #DIV/0 appears?

Thank you very much.

G
 
Hi ,


If you expect a formula to give you an error value , just change it to take care of this possibility , by :


=IFERROR(Original formula,0)


Narayan
 
Then I have to enter this formula into all the cells, I have already made my dashboard. Also, don't you think adding this formula makes my workbook slow?


Basically do you think the data behind a formula makes the workbook slow or the formula itself?

Thank you very much.

Guity
 
Hi ,


In today's scenario of powerful high-speed processors , buses and optimized applications , your worksheet would need to be extremely complicated / complex to slow down because of a thousand formulae.


You need to find out whether the inclusion of this will slow down the worksheet by a significant amount.


Narayan
 
Ok, I will try and get back to you. But how about conditional formatting? I have already made my dashboard and I have to go to each cell of my data table and add this formula.

however I have to, I will do. Do you have any solution with conditional formatting?
 
Hi ,


I am sorry but I cannot think of any possibility other than a VBA procedure , to make your of changing all the CF formulae easier.


However , as I understand it , both the cell formulae and the CF formulae need to be changed ; since the CF formulae will be based on the cell values , if the incorporation of the IFERROR functions in the formulae return 0 , then the CF formulae may not need to be changed. Have you tried changing one cell formula and seeing this ?


Narayan
 
Naryan,

My formula is: =0/0 and then it gives me #DIV/0!, I used conditional formatting by entering: if the call value contains =0/0, then do this. I couldn't get the result I wanted.


I can use IFERROR, but I have to go into cells one by one and incorporate this formula, I am looking for easy way.


Thanks a lot for your help.
 
Guity,


This will not happen, what you are trying to achieve is to replace the value of the cell by 0 by using conditional formatting, however this is not the purpose of the feature.


It can help you to identify which cells contains error and when the condition (is there any error) is met you may highlight those cells.


However the original issue to replace the value with a ZERO can only be done as suggested by Narayan above,


There are two options at hand that can be looked at.


1. Update your formulas to include Error Handlers.

2. Make a copy of the raw data and then Copy Paste Values, and replace all #DIV!0 with 0 and then update your dashboard.


HTH

~VijaySharma
 
I used the IFError suggested by Naryan and it worked, which is great and I am happy that I took DIV/0 away. I don't know how to Use Error Handlers, anyway.


As you say the Conditional Formatting should be able to do this:


"It can help you to identify which cells contains error and when the condition (is there any error) is met you may highlight those cells. "


I say if the cell contains =0/0, fill it with red color, This should work, but I don't know which part of that is not done properly, so it doesn't work for me.

Thank you for the help.
 
Guity,


Error Handler are functions that will allow us to write a formula and also put an On Error Do This clause.


=IFERROR(1/0,"There was Division by Zero, sorry cannot do this")


Is an example of Error Handler... In previous versions of Excel, ISERROR was used to tackle these.


To get what you need, select the cell which contains the formula =0/0

Now go to Conditional Formatting, Manage Rules (Excel 2007).


Click on New Rule

Click on Use a forumula to determine which cells to format


Assuming you have put =0/0 in cell A1


Put this formula =iserror($A$1)

and then select the format


Click on Ok and Ok again to come out of CF.


now the cell A1 shoud have the color you selected in CF.


This will NOT remove the #DIV/0! from the cell (which I think is your original intent)


~VijaySharma
 
Hello Vijay,

My intention is to remove #DIV/0!. i will try and I get back to you. Thank you for your time for spending on my question.

Guity
 
Back
Top