Division by 0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am making a report and some time there is a condition when we get "#div0"
Or "#Error" , I need to use sum function but when I get "#div0" Or "#Error"
in sum range report don't open.

Please advise if there is any solution to use Sum with "#Error" Or div0 ??
Thanks
 
Use IIf() to avoid the case.

For example, if you have 2 fields named Num and Denom:
=IIf([Denom]=0, Null, [Num] / [Denom])

Come to think of it, that is probably how database software like Access
should work anyway, since Null covers the meaning "undefined."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SUMIF SUBTOTAL OR SUMPRODUCT? 2
#div0 and circular reference 8
irr 1
Averaging across multiple sheets with#div0 errors 14
Problems with basic function average 2
#DIV0! 2
IF statement 5
User function and Open Event 2

Back
Top