Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
try
=if(A2<0,A2-A1,A2+A1) or =A2+if(A2<0,-A1,A1) or =A2+Sign(A2)*A1 "Chad" wrote: 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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=IF(A2<0,A2-A1,A2+A1) Hope this helps. Pete On Jul 25, 5:00 pm, Chad wrote: 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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=(ABS(A2)+A1)*SIGN(A2) "Chad" wrote: 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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. This was a BIG help! my report wil lbe done on time.
Thanks again "Teethless mama" wrote: Try this: =(ABS(A2)+A1)*SIGN(A2) "Chad" wrote: 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 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. This was a BIG help! my report wil lbe done on time.
Thanks again "Pete_UK" wrote: Try this: =IF(A2<0,A2-A1,A2+A1) Hope this helps. Pete On Jul 25, 5:00 pm, Chad wrote: 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 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks. This was a BIG help! my report wil lbe done on time.
Thanks again "bj" wrote: try =if(A2<0,A2-A1,A2+A1) or =A2+if(A2<0,-A1,A1) or =A2+Sign(A2)*A1 "Chad" wrote: 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 |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome - thanks for taking the trouble to feed back to us
individually. Pete On Jul 26, 9:18 am, Chad wrote: Thanks. This was a BIG help! my report wil lbe done on time. Thanks again "Pete_UK" wrote: Try this: =IF(A2<0,A2-A1,A2+A1) Hope this helps. Pete On Jul 25, 5:00 pm, Chad wrote: 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- Hide quoted text - - Show quoted text - |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. -- "The internet is famously powered by the twin engines of bitterness and contempt." -- Nathan Rabin, /The Onion/ Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Some Positive, Some Negative | Excel Worksheet Functions | |||
post positive sum as a negative? help! | Excel Worksheet Functions | |||
IF positive/If negative???? | Excel Worksheet Functions | |||
Formula to make Negative Values Positive & Positive Values Negative? | Excel Discussion (Misc queries) | |||
Convert positive # to negative | Excel Discussion (Misc queries) |