Tolerance to show out in color

JE79

New Member
Joined
Mar 1, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I need a spreadsheet that will show Mean/Target, +/- tolerance but then have the results show Red if out of tolerance. Either text red or cell red. For more than 1 result. Do not need the result "OK" or "NG". Just trying some formulas on that column.
 

Attachments

  • Screenshot_20230301_110559.png
    Screenshot_20230301_110559.png
    7.7 KB · Views: 6

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
would you mind explaning the image

with some examples of expected results and why

mean/target = 2.8
Tolerance is +/- 0.1
and result is 2.9
so NOT coloured

BUT

mean/target = 0.5
Tolerance is +/- 0.006
and result is 0.508

so thats no good as the tolerence is 0.006 - so
0.494 or 0.506 is the range

so i have used ABS() and subtracted the result from the target - so we get + regardless
and then compared to the tolerance

is that what you are after

Book10
ABCDEFGHIJ
1
22.80.1ok2.90.100FALSE
30.50.006ng0.5080.008TRUE
42.80.1ok2.80.000FALSE
5153.10.15ng1521.100TRUE
6
Sheet1
Cell Formulas
RangeFormula
H2:H5H2=ABS(F2-C2)
J2:J5J2=H2>D2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F5Expression=ABS($F2-$C2)>$D2textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
F2:F100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ABS($F2-$C2)>$D2

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Sorry, maybe this is a better example of what I need:
 

Attachments

  • Screenshot_20230301_113202.png
    Screenshot_20230301_113202.png
    9.4 KB · Views: 4
Upvote 0
Try

Dante Amor
ABCDEFGHIJ
1CharMean+/-Met12345
2OD2.80.1ok2.932.73.12.8
3ID0.50.006ng0.5060.5080.5050.5020.507
4Lenght2.80.1ok2.832.92.82.7
5Lenght153.10.15ng154153.2153.3153.1153.3
Hoja4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:J5Expression=OR(F2>$C2+$D2,F2<$C2-$D2)textNO


----- --
NOTE XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Not getting out of tolerance results to show red.
 
Upvote 0
=ROUND(ABS(F2-$C2),10)>$D2
i have used round as i was getting a floating point error - which excel does do occasionally

Book10
ABCDEFGHIJ
1
22.8000.1002.9003.0002.7003.1002.800
30.5000.0060.5060.5080.5050.5020.507
42.8000.1002.8003.0002.9002.8002.700
5153.1000.150154.000153.200153.300153.100153.250
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:J5Expression=ROUND(ABS(F2-$C2),10)>$D2textYES



for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
F2:J100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ROUND(ABS(F2-$C2),10)>$D2

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Last edited:
Upvote 0
EXACTLY what I needed! Thanks!!!
 

Attachments

  • Screenshot 2023-03-01 124931.png
    Screenshot 2023-03-01 124931.png
    10.9 KB · Views: 1
Upvote 0
you are welcome - not sure who your reply is too, not that it matters
 
Upvote 0

Forum statistics

Threads
1,215,208
Messages
6,123,642
Members
449,111
Latest member
ghennedy

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