Compare values with tolerance

alombia

Board Regular
Joined
Jan 14, 2016
Messages
89
Hi,

I have the following formula to compare tow values: =IF(BO4="","",IF(BO4<$BL4,"Poor",IF(BO4=$BL4,"Good",IF(BO4>$BL4,"Very Good"))))
As an example, BO4 is 1.5 and BL4 is 2.

However, I would like to compare the two values but with a tolerance of 0.5. In others, If BO4 is is with 0.5 of BL4, then 'Good'; less than that is 'Poor' and above that is "Very Good".

Your help is very much appreciated.
Thanks.
 
I have been trying to play around with the formula but it seems you cannot reference cells in place of the values :(
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try this:-

=LOOKUP(BL4-BO4,$BI$1:$BK$1,{"Very Good","Good","Poor"})

Where BI1:BK1 contain the values -15 , -0.5 , 0.51 respectively.
 
Upvote 0
Try this:-

=LOOKUP(BL4-BO4,$BI$1:$BK$1,{"Very Good","Good","Poor"})

Where BI1:BK1 contain the values -15 , -0.5 , 0.51 respectively.

You are amazing! Its perfectly :)

Suppose if i want the tolerance to be 1, would the values be: -15, -1, 1.01
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top