ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   divide by zero (https://www.excelbanter.com/excel-discussion-misc-queries/228560-divide-zero.html)

arknsparc

divide by zero
 
need to calculate error from zero...
typical working formula is (x43-x45)/x45 for percentage of error. these
calculations provide values of error for calibrations over a range of values
that take place in our facility. for an error however that occurs based on
the zero value this formula understandably displays formula error div/0.

eg.. calibration expected 4.00ma. measured 4.18ma results in an error of 0.045
(4.18-4.00)/4.00 = 0.045

calibration expected 0inH2O. measured 0.8inH2O results in error DIV/0

how best to handle this ???
--
instrumentation engineer

CLR

divide by zero
 
Perhaps....
=if(X45=0,"Zero Divisor",(x43-x45)/x45)

Replace Zero Divisor with any error message you wish.

Vaya con Dios,
Chuck, CABGx3



"arknsparc" wrote:

need to calculate error from zero...
typical working formula is (x43-x45)/x45 for percentage of error. these
calculations provide values of error for calibrations over a range of values
that take place in our facility. for an error however that occurs based on
the zero value this formula understandably displays formula error div/0.

eg.. calibration expected 4.00ma. measured 4.18ma results in an error of 0.045
(4.18-4.00)/4.00 = 0.045

calibration expected 0inH2O. measured 0.8inH2O results in error DIV/0

how best to handle this ???
--
instrumentation engineer



All times are GMT +1. The time now is 06:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com