Check if the value is between 2 numbers with a formula in an excel report

No need to give a lot of explanation, I think that the title is quite expressive. It happens that I need for instance to check if the SLA is between a result so I can say for instance, good or bad, to resume, to check if the number is between 2 different values.

formula excel

 

When I use the formula ?

To check if the result is between 2 different values.

 

How to use the formula ?

The formula in this topic is with "," so depending of the operating system of your PC, the formula should have ";" instead of ",".

 

How is/are the formula(s) ?

=IF()

=AND()

Put this formula:

=IF(AND(A2>4,A2<10),TRUE,FALSE) or =IF(AND(A2>4,A2<10),"yes","no")

So if the number of the cell A2 is not between 5 and 9, it will show true or false. The other formula allows to personalize the result, in this case, I just ask it to put yes or no. In case if I want to include 4 and 10, I have to put the = sign so:

=IF(AND(A2>=4,A2<=10),TRUE,FALSE) or =IF(AND(A2>=4,A2<=10),"yes","no")

Interesting Topics