Solved

Division by zero

Posted on 2011-03-08
3
866 Views
Last Modified: 2012-05-11
Hi All!

I continue to get a division by zero error even though the syntax check says "no errors".  I've been starting at it and just can't seem to find out how to fix this issue:

Here is the formula:

If (Previous({Draw_Information.Net Sales Total})-{Draw_Information.Net Sales Total})=0
then 0
else ({Draw_Information.Net Sales Total})/{Draw_Information.Net Sales Total}-(Previous({Draw_Information.Net Sales Total}))*100

spudmcc
0
Comment
Question by:spudmcc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:spudmcc
ID: 35075596
Sorry--pasted wrong formula

If (Previous({Draw_Information.Net Sales Total})-{Draw_Information.Net Sales Total})=0
then 0
else ((Previous({Draw_Information.Net Sales Total})-{Draw_Information.Net Sales Total})/{Draw_Information.Net Sales Total})*100
0
 
LVL 12

Accepted Solution

by:
JayConverse earned 500 total points
ID: 35075611
You should be checking the denominator:

If ({Draw_Information.Net Sales Total})=0
then 0
else ((Previous({Draw_Information.Net Sales Total})-{Draw_Information.Net Sales Total})/{Draw_Information.Net Sales Total})*100
0
 

Author Closing Comment

by:spudmcc
ID: 35075807
Thank you so much for the 2nd set of eyes.  It was driving me crazy.  I so very much appreciate your quick response, knowledge and time.  

spudmcc (Andy)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question