Solved

Division by zero

Posted on 2011-03-08
3
848 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
  • 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now