Go Back

Value is between two numbers

Figure 1. of the And Function in Excel.

Let’s say we have to determine whether or not a number value can be found between two numbers, we can utilize the Excel AND Function. This tutorial will walk through the process

Generic Formula

=AND(val>MIN(num1,num2),val<MAX(num1,num2))

How to use the AND, MIN AND MAX Functions in Excel

Basically, this formula syntax will run two tests on a value. We can achieve this by following two simple steps.

  1. We will input our values/data on our Excel worksheet, including the values we are required to search for  as shown in Cells C2:C8 (column D) of the example illustrated below;

Figure 2. of How to determine if a specific value can be found within a set of data values in Excel.

  1. Label the next column in our worksheet as BETWEEN. This is where Excel will automatically generate the results of our search. Then proceed to enter the following formula syntax into the formula bar for cell D2 of our worksheet.

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

Figure 3. of the AND, MIN and MAX Functions in Excel.

Copy the formula syntax in D2 down into the formula bar for all the cells in the BETWEEN column to achieve the required results for our search.

We can also use the AND, MIN and MAX Function for situations where we have bulky data to statistically analyze. Our analysis involves that we find out whether a specific value can be found within the different sections of data that we have. We can conveniently utilize the “AND, MIN and MAX Functions for this.

Figure 4. of Final Result.

Instant Connection to an Expert through our Excelchat Service

Our live Excelchat Service is here for you. We have Excel Experts available 24/7 to answer any Excel questions you may have. Guaranteed connection within 30 seconds and a customized solution for you within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I'm trying to input a value into an IF statement where if the value is between two numbers, a certain value should appear. How do I do this?
Solved by A. E. in 18 mins
if (a cell value is between two values, x,or "")
Solved by Z. H. in 16 mins
Is it possible to color the region between two cells with the same value and have empty cells between eachother
Solved by V. Y. in 13 mins

Leave a Comment

avatar