SStroz
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
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
I think you could be a litle more clear explaining some of your actual code in order to get the right answer.
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Michael!!!
Steve
Steve