Check If value is between the two numbers

In this article, we will learn how to check if the value is between the two numbers in Excel.

This concept is very simple. We just need to check 2 condition

  • The value is greater than the smaller of the two numbers.
  • The value is smaller than the larger of the two numbers.

Whenever we need to satisfy two conditions we use AND logic operator.

Syntax:

=AND ( logic_test1, logic_test2,…)

Let’s learn this through an example shown below.

Here we have the two numbers and the value we need to check.
1
Use the formula

=AND(C2>MIN(A2,B2),C2<MAX(A2,B2))

Explanation:

Here MAX & MIN function returns the maximum and minimum of the two numbers. AND functions test both conditions and returns “True” only if both statements stands True else False.
2
Press Enter and copy the formula in other cells using Ctrl + D shortcut.
3
As you can see the formula returns True if the value lies between the two numbers else it returns False.

Hope you learned how to check the value lies between the two numbers in Excel. Explore more articles here on Excel Logic_test functions here. Please feel free to state your query or feedback in the comment section below. We will help you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube