Division by zero

Mike Hughes

Registered User.
Local time
Today, 14:18
Joined
Mar 23, 2002
Messages
493
In my report for each worker I’m trying to figure what the % of current paid to current owed. Some workers have no current paid ($0) or no current owed ($0) or $0 in both fields. When I run the report I get an error “Division by zero”. Could someone please show me how to fix this? See attached screenshots. Thanks Mike
 

Attachments

  • screenshot 1.jpg
    screenshot 1.jpg
    53.4 KB · Views: 119
  • screenshot 2.jpg
    screenshot 2.jpg
    92 KB · Views: 113
Try this:
=IIF([currentPaid]=0 or [currentOwed]=0,0,[currentPaid]/[currentOwed])
 
That worked. Thank you very much. Mike
 

Users who are viewing this thread

Back
Top Bottom