Page 1 of 1
divide by zero error
#1
Posted 02 February 2012 - 01:46 PM
Hello,
I have a simple calculated field, which is one column divided by another. If the denominator is 0, I get the error 'Divide By Zero Error'. I would like to handle that case within the calculated field if possible ( instead of the SQL or the Data Range), but I am not sure how to write the expression, so that the code will compile and return just 0.
I tried using the ISERROR function, but that doesn't seem to work.
Any suggestions how I should do this?
here's my calculated field:
GROSS_SALES_CNT / TOTAL_CONTACT_CNT
I have a simple calculated field, which is one column divided by another. If the denominator is 0, I get the error 'Divide By Zero Error'. I would like to handle that case within the calculated field if possible ( instead of the SQL or the Data Range), but I am not sure how to write the expression, so that the code will compile and return just 0.
I tried using the ISERROR function, but that doesn't seem to work.
Any suggestions how I should do this?
here's my calculated field:
GROSS_SALES_CNT / TOTAL_CONTACT_CNT
Page 1 of 1






MultiQuote



