If Function express negative result

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
 
D

Dan E

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top