negative and positive sums

C

Chad

How do I create a formula that subracts A1 from A2 if A2 is a negative
number, but adds A1 and A2 if A2 is a positive number?

Thanks for your help
 
P

Pete_UK

You're welcome - thanks for taking the trouble to feed back to us
individually.

Pete
 
S

Stan Brown

Wed, 25 Jul 2007 09:00:03 -0700 from Chad
How do I create a formula that subracts A1 from A2 if A2 is a negative
number, but adds A1 and A2 if A2 is a positive number?

If you mean what you said, it's
=A2+SIGN(A2)*A1

But I suspect you meant something different.
 
Top