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.
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
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...