Link to home
Start Free TrialLog in
Avatar of SStroz
SStrozFlag for United States of America

asked on

"Percentage Difference" formula needed

I have two currency fields, Current YTD and Previous YTD.

I need a formula that shows the percentage increase or decrease.  I've tried a few things but I'm getting Division by 0 errors.  Either value can be "0".

I need something to display 50, 100, or -50, -100, etc, etc

I'm braindead - can any of you help?

Thanks in advance!


Steve
Avatar of carloselfaite
carloselfaite

I think you could be a litle more clear explaining some of your actual code in order to get the right answer.
Avatar of chaau
you need to use "if then else" syntax to check if the divisor is zero, like this:
If {Current YTD} ={Previous YTD} then 0 else ({Current YTD} - {Previous YTD}) / {Current YTD} * 100

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SStroz

ASKER

Thanks Michael!!!


Steve