ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   avoid div by zero (https://www.excelbanter.com/excel-programming/278830-avoid-div-zero.html)

sapta

avoid div by zero
 
Dear All,
how can we avoid division by Zero in calculated field
using MS QUERY ?

thanks in advance

sapta


Tom Ogilvy

avoid div by zero
 
can't say specifically, but usually, when dealing with formulas you can use
an if statement

=if(divisor = 0, 0, dividend/divisor)

--
Regards,
Tom Ogilvy


"sapta" wrote in message
...
Dear All,
how can we avoid division by Zero in calculated field
using MS QUERY ?

thanks in advance

sapta




sapta

avoid div by zero
 
I tried many function before including if,iif,case
but still not found the corrects ones !
thanks

-----Original Message-----
can't say specifically, but usually, when dealing with

formulas you can use
an if statement

=if(divisor = 0, 0, dividend/divisor)

--
Regards,
Tom Ogilvy


"sapta" wrote in message
...
Dear All,
how can we avoid division by Zero in calculated field
using MS QUERY ?

thanks in advance

sapta



.



All times are GMT +1. The time now is 04:17 PM.

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