Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 'plus or minus' conditional operation

I am trying to determine whether or not a value falls within a specification.
If A1 is -0.285, for example, and I want to say IF(ABS(A1)=0±0.5, "Pass",
"Fail") This will allow me to quickly see that if A1 is 0 plus or minus 0.5,
then it displays whether A1 passes the specification or not. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default 'plus or minus' conditional operation

=IF(ABS(a1)<=0.5,"Pass","Fail")

....is my suggestion. But verify the "or equal to" part of the logic.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 'plus or minus' conditional operation

=if(abs(a1-0)<.5,"pass","fail")
or
=if(abs(a1-0)<=.5,"pass","fail")

In your case, you don't need to include the -0.
=if(abs(a1)<.5,"pass","fail")
or
=if(abs(a1)<=.5,"pass","fail")

(I don't know what happens at .5)

King of Salem wrote:

I am trying to determine whether or not a value falls within a specification.
If A1 is -0.285, for example, and I want to say IF(ABS(A1)=0±0.5, "Pass",
"Fail") This will allow me to quickly see that if A1 is 0 plus or minus 0.5,
then it displays whether A1 passes the specification or not. Any suggestions?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 'plus or minus' conditional operation

One way:

=IF(ISNUMBER(A1),IF(AND(A1=-0.5,A1<=0.5),"Pass","Fail"),"")

--
Biff
Microsoft Excel MVP


"King of Salem" <King of wrote in message
...
I am trying to determine whether or not a value falls within a
specification.
If A1 is -0.285, for example, and I want to say IF(ABS(A1)=0±0.5, "Pass",
"Fail") This will allow me to quickly see that if A1 is 0 plus or minus
0.5,
then it displays whether A1 passes the specification or not. Any
suggestions?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 303
Default 'plus or minus' conditional operation

Or you simply use the conditional formatting tool.
Go to ..<Format<condional formating<cell value isbetween -0.5 and
0.5..........and set the format you want.
Using font colour or pattern.

--
Greetings from New Zealand
"King of Salem" <King of wrote in message
...
I am trying to determine whether or not a value falls within a
specification.
If A1 is -0.285, for example, and I want to say IF(ABS(A1)=0±0.5, "Pass",
"Fail") This will allow me to quickly see that if A1 is 0 plus or minus
0.5,
then it displays whether A1 passes the specification or not. Any
suggestions?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 'plus or minus' conditional operation

Thanks. I will try one or all of those suggestions out. I appreciate your
help.
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 'plus or minus' conditional operation

It seems that what ended up working for me was:

=IF(AND(ABS(A1)=0,ABS(A1)<=0.5),"Pass","Fail")

Thank you for your assistance!!
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 'plus or minus' conditional operation

What does the ABS(A1)=0 test do?
--
David Biddulph

"King of Salem" wrote in message
...
It seems that what ended up working for me was:

=IF(AND(ABS(A1)=0,ABS(A1)<=0.5),"Pass","Fail")

Thank you for your assistance!!



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
CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS Socal Analyst looking for help Excel Discussion (Misc queries) 2 May 12th 06 07:17 PM
Curious operation of Paste Fred Smith Excel Discussion (Misc queries) 1 March 24th 06 12:02 PM
what does $ operation mean JO New Users to Excel 1 December 15th 05 11:42 PM
ilegal operation emilija Links and Linking in Excel 1 January 20th 05 12:24 AM
Conditional operation Shetty Excel Worksheet Functions 1 January 17th 05 01:08 PM


All times are GMT +1. The time now is 11:14 PM.

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"