ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   is number between values (https://www.excelbanter.com/excel-worksheet-functions/79733-number-between-values.html)

chuckwagon2031

is number between values
 
I am measuring a selection of cast metal parts. What formula do I use to
determine whether the dimension is highrer than the upper limit or lower than
the lower limit.
The high limit is .7129", the low limit is .5943"

Lotus123

is number between values
 

Presuming value to work with is in A1, use this formula:

=IF(A10.7129,"HIGH",IF(A1<0.5943,"LOW",A1))


--
Lotus123
------------------------------------------------------------------------
Lotus123's Profile: http://www.excelforum.com/member.php...o&userid=28611
View this thread: http://www.excelforum.com/showthread...hreadid=526569


Harlan Grove

is number between values
 
Lotus123 wrote...
Presuming value to work with is in A1, use this formula:

=IF(A10.7129,"HIGH",IF(A1<0.5943,"LOW",A1))

....

More condensed than the other responses, but why not use a table
lookup?

=LOOKUP(A1,{0;0.5943;0.7129},{"LOW";"OK";"HIGH"})

Note that in the wonderful world of Excel, if A1 contained text or
boolean (TRUE/FALSE) values, the IF formula would invariably return
HIGH since text and both boolean values are treated as greater than any
number value, but the LOOKUP formula returns #N/A when A1 is text or
boolean.



All times are GMT +1. The time now is 01:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com