If Function express negative result

  • Thread starter Thread starter Allyrd
  • Start date Start date
A

Allyrd

Have question regarding If formula.

My basic statement is if, B is greater than A, then B minus A needs to
return a positive value. If B is less than A, I need to have a negative
value shown.

Can I do this all in one cell location?

Thank you for your assistance
 
Allryd,

Wont the formula
= B - A
do that for you?

B > A -> 10 > 5 -> = 10 - 5 = +5
B < A -> 5 < 10 -> = 5 - 10 = -5

Dan E
 
Back
Top