Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default formula to drive plus or minus as operator

=IF(B10, A1-B1, A1+B1)
--
Gary''s Student - gsnu200797
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Links to mapped drive change to refer to local hard drive SueD Links and Linking in Excel 1 May 8th 08 11:42 AM
What does ^ operator mean in a formula?? Vytau Excel Worksheet Functions 2 November 30th 07 10:31 PM
Array Formula with AND operator edwardpestian Excel Worksheet Functions 1 July 17th 06 09:56 AM
What does ! mean as an operator within a formula Tam Excel Discussion (Misc queries) 3 January 2nd 06 08:48 AM
"--" operator in a formula Arla M Excel Worksheet Functions 2 February 8th 05 09:24 AM


All times are GMT +1. The time now is 05:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"