I've always handled that by prefacing my math with an if statement, something like =if (C10, D1/C1,0), to check to see if I was actually trying to divide by zero. That may or may not be feasible depending upon how you have your function nested, but I'm always a little leary of just globally hiding errors.