Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default avoid div by zero

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

thanks in advance

sapta

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid #div/0! Harsh Bahal Excel Worksheet Functions 8 March 10th 09 05:47 AM
IF - how to avoid cells with no value Heidi Excel Discussion (Misc queries) 6 March 7th 09 11:21 PM
Trying to avoid nested IFs Alonso[_2_] Excel Worksheet Functions 8 September 25th 08 12:43 AM
How to avoid #DIV/0 from appearing Chris921 Excel Discussion (Misc queries) 1 March 1st 06 05:12 PM
what is this, how do I avoid it? datadude1959 Excel Discussion (Misc queries) 2 September 29th 05 06:05 PM


All times are GMT +1. The time now is 12:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"