=ROUND(IF(I17=0,IF(G17=0,0,SIGN(-G17)),IF(G17=0,SIGN(I17),(G17-I17)/ABS(G17))),5)
so, I17 = 0.00 and G17 = 112.00 (both positive)
why is this giving me a (negative!!) -100.00%
=ROUND(IF(I17=0,IF(G17=0,0,SIGN(-G17)),IF(G17=0,SIGN(I17),(G17-I17)/ABS(G17))),5)
so, I17 = 0.00 and G17 = 112.00 (both positive)
why is this giving me a (negative!!) -100.00%
its only getting as far as this
=IF(I17=0,IF(G17=0,0,SIGN(-G17))
i17=0 and g17 <>0 so return SIGN(-G17)
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
do you know why?
What you expect? It should return -100%:
IF(I17=0,IF(G17=0,0,SIGN(-G17))
I17 = 0 so
IF(G17=0,0,SIGN(-G17)
G17 is 100 so it will return sign(-100) and that's -1
-1 is -100%
Never use Merged Cells in Excel
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks