Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formula to drive plus or minus as operator
We have a standard formula to show the variance of 2 totals (A1-B1 =
Variance). However, it only works when B1 is a positive number. Is there a formula that changes the operator to a plus when B1 is a negative nubmer? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formula to drive plus or minus as operator
=IF(B10, A1-B1, A1+B1)
-- Gary''s Student - gsnu200797 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formula to drive plus or minus as operator
Strictly speaking that formula gives you the difference, not the
variance. If you always want a positive difference then you can use the ABS function: =ABS(A1-B1) Or you might mean something like this: =A1-ABS(B1) Hope this helps. Pete On Aug 5, 11:22*pm, Newsgal wrote: We have a standard formula to show the variance of 2 totals (A1-B1 = Variance). However, it only works when B1 is a positive number. Is there a formula that changes the operator to a plus when B1 is a negative nubmer? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formula to drive plus or minus as operator
=A1-ABS(B1)
-- Regards, Peo Sjoblom "Newsgal" wrote in message ... We have a standard formula to show the variance of 2 totals (A1-B1 = Variance). However, it only works when B1 is a positive number. Is there a formula that changes the operator to a plus when B1 is a negative nubmer? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
formula to drive plus or minus as operator
Thanks, that should do it!
"Gary''s Student" wrote: =IF(B10, A1-B1, A1+B1) -- Gary''s Student - gsnu200797 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Links to mapped drive change to refer to local hard drive | Links and Linking in Excel | |||
What does ^ operator mean in a formula?? | Excel Worksheet Functions | |||
Array Formula with AND operator | Excel Worksheet Functions | |||
What does ! mean as an operator within a formula | Excel Discussion (Misc queries) | |||
"--" operator in a formula | Excel Worksheet Functions |