Excel Formula to get "OKAY' between 2 sets of tolerances

MelissaOsborne

New Member
Joined
Jan 14, 2025
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I need an Excel formula that checks for value between 2 seperate ranges. Check if value is between (.0406 and .0483) or between values (-.0483 and -.0406). Either value is OK in the Same Cell

I tried and if statement. This one Didnt work however.

This is what I have. However the code only checks to make sure all the statements are true instead of checking between 2 sets of values.

=IF(AND(AQ135>=0.0406,AQ135<=0.0483,AQ135<=-0.0406,AQ135>=-.0483),"OK","")

The formula should say OK in the cell after it verifies that the cell AQ135 is either between (.0406 and .0483) or (-.0406 and -.0483). The value can not equal outside of these 2 ranges.

1736890023415.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try:
Excel Formula:
=IF(AND(ABS(AQ135)>=0.0406,ABS(AQ135)<=0.0483),"OK","")
 
Upvote 0

Forum statistics

Threads
1,226,460
Messages
6,191,165
Members
453,643
Latest member
adamb83

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