View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
[email protected] ato_zee@hotmail.com is offline
external usenet poster
 
Posts: 19
Default Can I turn off 0 divide error, for denominator = 0

I have a macro with many divisions, for many
of the divisions both the numerator and denominator are zero.
It's the no data case, so it's 0/0 for that condition
(or else it's a fraction).
Office 2007, integer dimensioned values.
If denominator = 0 then denominator = 1
will get round it since it's then 0/1 and still equates
to 0.
But doing this comparison a million or so
times is clearly time consuming and inefficient.
With the current database, and growing, it's approx
5M divide by 0 tests.
Any suggestions?