> Hello all,
>
[quoted text clipped - 11 lines]
> Thanks
> Brian
I figured it out, here's what I used.
=IF(C2<B2-0.01,"Fail",IF(C2>B2+0.01,"Fail","Pass"))
It works anyway.
Brian
vandenberg p - 15 Apr 2007 03:31 GMT
Hello:
Here is one that does not use a nested if.
=IF(ABS(B2-C2)<0.01,"Pass","Fail")
Pieter Vandenberg
:> Hello all,
:>
[quoted text clipped - 11 lines]
:> Thanks
:> Brian
: I figured it out, here's what I used.
: =IF(C2<B2-0.01,"Fail",IF(C2>B2+0.01,"Fail","Pass"))
: It works anyway.
: Brian
diablo - 15 Apr 2007 13:14 GMT
Thanks, I'll look up the ABS function and read about it.
Brian
> Hello:
>
[quoted text clipped - 30 lines]
>
> : Brian
Sat, 14 Apr 2007 19:02:31 -0400 from diablo <nomail@mail.not>:
> Hello all,
>
[quoted text clipped - 6 lines]
> So if cell C2 is 1.899 it's fail. if it's 2.011 it's fail. If it's between
> those two values it pass.
Do you really mean that example? It's usual to have tolerances be
relative to the size of the original measurement, not some fixed
number.
If the baseline is 2.000, and your tolerance is 0.010, that's half a
percent. But if the baseline is 0.400, would your tolerance still be
0.010 (2.5%) or would it be 0.002 (half a percent)?
=if(abs(B2-C2)>0.01,"FAIL","PASS")
is what I think you're asking for
=if(abs(B2-C2)>0.005*abs(B2),"FAIL","PASS")
is what I think you should be using.

Signature
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/