Formula for a Deviation

Kars1995

New Member
Joined
Dec 17, 2016
Messages
4
Hello,

I am new on this forum and making a quality check sheet for different parts. The idea is that they measure parts with a 'digital marking gauge'. In the sheet I have a cell with the dimension and a cell the maximal deviation.

In an other cell they need to put in the measured dimension. If it is more or than the deviation it need to give FAIL if it is between the deviation it needs to give APPROVED. I tried several formulas but I don't succeed. I hope you can help me with this matter! :biggrin:

Kind regards,


Kars

Dimension
±

<tbody>
</tbody>
Measured

<tbody>
</tbody>
Approved/Fail
15,6

<tbody>
</tbody>
0,1

<tbody>
</tbody>
...

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Kars1995

New Member
Joined
Dec 17, 2016
Messages
4
Thanks for your help and reply :), but unfortunately it does not work.
It needs to be a general formula that I can apply on differten spreadsheets/quality checks.
I made an example, hope you guys can help me!

Excell_example.png
 
Upvote 0

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,443
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
try this in E25 and copy down

=IF(AND(D25<=B25+C25,D25>=B25-C25),"Approved","Fail")
 
Upvote 0

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,801
Thanks for your help and reply :), but unfortunately it does not work.
It needs to be a general formula that I can apply on differten spreadsheets/quality checks.
I am really curious to hear -- in which way does not my formula work for your examples?

Have you tried adjusting references? -- Like this:
=IF(ROUND(ABS(D25-B25),6)<=C25,"Approved","Fail")
 
Last edited:
Upvote 0

Kars1995

New Member
Joined
Dec 17, 2016
Messages
4
Yes I did tried that. But everytime I fill in the formulas I get this error.

Excell_error.png
 
Upvote 0

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,443
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
try this in E25 and copy down

=IF(AND(D25<=B25+C25,D25>=B25-C25),"Approved","Fail")

try this instead

=IF(AND(D25<=B25+C25,D25>=B25-C25);"Approved";"Fail")
 
Upvote 0

Kars1995

New Member
Joined
Dec 17, 2016
Messages
4
try this instead

=IF(AND(D25<=B25+C25,D25>=B25-C25);"Approved";"Fail")

Sorry for the late response, but I finaly managed to have a good formula. This one works:

=IF(D27<(B27-C27);"Failed!";IF(D27>(B27+C27);"Failed!";"Approved")

Thank you everybody for your help :)
 
Upvote 0

Forum statistics

Threads
1,191,697
Messages
5,988,164
Members
440,131
Latest member
EricMoz

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
Top