C canberry Registered User. Local time Today, 15:27 Joined Sep 22, 2008 Messages 36 Feb 19, 2009 #1 Hi all. I get a #Error even when my formula boils down to eg... ((A-B) + (C/D)) * .10 Where C and D = 0. A= 30, B=4 I really want the output to be 2.6 Tell me if i need to post my formula
Hi all. I get a #Error even when my formula boils down to eg... ((A-B) + (C/D)) * .10 Where C and D = 0. A= 30, B=4 I really want the output to be 2.6 Tell me if i need to post my formula
SQL_Hell SQL Server DBA Local time Today, 23:27 Joined Dec 4, 2003 Messages 1,361 Feb 19, 2009 #2 If D is zero then that's your problem you cant divide by zero. Try it on a calculator...it's not possible
If D is zero then that's your problem you cant divide by zero. Try it on a calculator...it's not possible
Dennisk AWF VIP Local time Today, 23:27 Joined Jul 22, 2004 Messages 1,649 Feb 19, 2009 #3 Division by zero C/D where D = 0 is the cause of your problem
C canberry Registered User. Local time Today, 15:27 Joined Sep 22, 2008 Messages 36 Feb 19, 2009 #4 Yea, i agree u cant divide 0/0. But that result added to a figure should return that figure. (0/0) + 8 = 8. Does any 1 have any experience with the NullToZero function. I tried it in my query but it not working ?
Yea, i agree u cant divide 0/0. But that result added to a figure should return that figure. (0/0) + 8 = 8. Does any 1 have any experience with the NullToZero function. I tried it in my query but it not working ?
A Atomic Shrimp Humanoid lifeform Local time Today, 23:27 Joined Jun 16, 2000 Messages 1,954 Feb 19, 2009 #5 You can't divide anything by zero - it's fundamentally impossible. What real-world information is this formula representing? (because it sounds like it might not be doing so properly). Null to zero won't help, as that converts to zero.
You can't divide anything by zero - it's fundamentally impossible. What real-world information is this formula representing? (because it sounds like it might not be doing so properly). Null to zero won't help, as that converts to zero.
DCrake Remembered Local time Today, 23:27 Joined Jun 8, 2005 Messages 8,626 Feb 19, 2009 #6 Try ((A-B) + iif(C>0 And D> 0,(C/D),0)) * .10
A Atomic Shrimp Humanoid lifeform Local time Today, 23:27 Joined Jun 16, 2000 Messages 1,954 Feb 19, 2009 #7 DCrake said: Try ((A-B) + iif(C>0 And D> 0,(C/D),0)) * .10 Click to expand... ((A-B) + iif(D> 0,(C/D),0)) * .10 should work OK - because you can divide 0 by things, just not the other way around.
DCrake said: Try ((A-B) + iif(C>0 And D> 0,(C/D),0)) * .10 Click to expand... ((A-B) + iif(D> 0,(C/D),0)) * .10 should work OK - because you can divide 0 by things, just not the other way around.
C canberry Registered User. Local time Today, 15:27 Joined Sep 22, 2008 Messages 36 Feb 19, 2009 #8 Good to go.Thanks alot