negative and positive sums

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

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

Back
Top