Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I'm stuck in a small problem. I am getting a difference of two expressions(both expressions results in percentage values) and I need to show whether the result is > 0 or < 0 or = 0 in percentage.
So, for example if Expression 1 gives me 98% and Expression 2 gives me 97% which shows a decrease of 1% and I will show it as -1%. Or If I have 98% and 98.8% which gives me an increase of 0.8% but I'm rounding it up and showing as 1%, it's working fine till here.
But now suppose two expressions gives me values such as 97% and 96.8% which means a decrease of 0.2 % but I have to show it as 0% only but What i'm getting with my current expression is -0% which doesn't make any sense to the user.
Current expression :
=Num(Num(Exp1,'###%') - Num(Exp2,'###%'),'#,##0%')
I need to get this done asap so any suggestions will be hugely appreciated
Cheers,
Pranav
May be try this
=Num(Ceil(Exp1 - Exp2, 0.01), '#,##0%')
Try this
ROUND(Num(Exp1,'###%') - Num(Exp2,'###%'))
How about this
=Num(Ceil(Exp1 - Exp2, 0.005), '#,##0%')
Try this 🙂
=Num(Round('1.2%', 0.005), '#,##0%')
Maybe a to negative values extended formatting might be useful, like:
=Num(Exp1 - Exp2,'#,##0%;#,##0%')
- Marcus