A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
What is the actual equation in the worksheet?
You're always going to get a #DIV/0! error when you try to divide by zero. But you can test for the situation and set up to 'recover' from it and output anything you like. So if your worksheet formula is actually something like:
=A5/B5 and B5 is 0 then you get the error, but if you rewrite it as:
=IF(ISERR(A5/B5),0,A5/B5)
it will display 0 when the error takes place and assuming the cell is formatted as a %, then it would show as 0.0%.
The above will work in any version of Excel. You can trim it down in Excel 2007/2010 this way:
=IFERROR(A5/B5,0)
Does the same thing: if A5/B5 results in an error, 0 is displayed otherwise the result of A5/B5 is displayed.