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.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Try this:-

=LOOKUP(BO4/BL4,{0,0.5,0.51},{"Poor","Good","Very Good"})

Thanks but it is not producing correct outcomes. It should provide the following.

BO4 (Actual)
BL4 (Target)
Outcome

1.5
2
Good

1
2
Poor

0.5
1
Good

1.5
1.5
Good

2
1
Very good










<tbody>
</tbody>
 
Upvote 0
By what I understood from your explanation in post 1, if BO4 is 50% out of BL4 then GOOD less POOR and above VERY GOOD.


So do not understand your table:

BO4 (Actual)BL4 (Target)Outcome
12Poor
0.51Good



<colgroup><col><col><col></colgroup><tbody>
</tbody>
In both lines BO4 is 50% from BL4
One time IS POOR and one time is GOOD


Please try to explain again ....
 
Upvote 0
You are welcome , thank you for the feedback.

-15 not a typo, it was in order to deal with cases that BO4 (Actual) significantly larger then BL4 (Target)
 
Upvote 0
Thanks.
I have been using your formula for a while and now notice that it doesnt actually work accurately. Fr example, your formula gives the following results:

BL4 (Target)BO4 (Actual)Result
22GoodRight result
21.5GoodRight result
21.4PoorRight result
22.1Very GoodWrong result.

<tbody>
</tbody>

Also, is there any way to change the formula so that instead of writing the values, i.e. -15,0,0.51, I can simply put the value in a cell and reference that cell. This way I can change the tolerance if required. Thanks again for the help.
 
Last edited:
Upvote 0
Hi,

I understood from you that if BO4 (Actual) is bigger then BL4 (Target) it's Very Good ....am I wrong ?
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,217
Members
448,876
Latest member
Solitario

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