=ISBETWEEN(value_to_compare, lower_value, upper_value, [lower_value_is_inclusive], [upper_value_is_inclusive])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| value_to_compare | Yes | The value to test. Can be a number, date, or cell reference. |
| lower_value | Yes | The lower bound of the range. |
| upper_value | Yes | The upper bound of the range. |
| lower_value_is_inclusive | No | TRUE (default) if a value equal to lower_value counts as inside the range; FALSE to exclude it. |
| upper_value_is_inclusive | No | TRUE (default) if a value equal to upper_value counts as inside the range; FALSE to exclude it. |
ISBETWEEN tests whether a value sits inside a range defined by a lower and an upper bound. It returns TRUE if it does and FALSE if it doesn't. It saves you from writing two comparisons joined with AND, and its optional arguments let you decide precisely whether the endpoints themselves belong to the range.
There is no single operator for "between", so ISBETWEEN replaces a pair of comparisons. With the defaults (both bounds inclusive):
=ISBETWEEN(A2, 10, 20)is equivalent to
=AND(A2>=10, A2<=20)Setting the inclusive flags to FALSE switches >= to > and <= to <:
| lower_value_is_inclusive | upper_value_is_inclusive | Equivalent test |
|---|---|---|
| TRUE (default) | TRUE (default) | lower <= value <= upper |
| FALSE | TRUE | lower < value <= upper |
| TRUE | FALSE | lower <= value < upper |
| FALSE | FALSE | lower < value < upper |
=ISBETWEEN(B2, 1, 100)Returns TRUE for any value from 1 to 100, including 1 and 100.
=ISBETWEEN(B2, 50, 100, TRUE, FALSE)Returns TRUE for values from 50 up to, but not including, 100. Half-open ranges are ideal for buckets because a value on a boundary (exactly 100) lands in only one bucket.
=ISBETWEEN(A2, DATE(2026,7,1), DATE(2026,9,30))Returns TRUE for dates in the third quarter of 2026. Because dates are serial numbers, ISBETWEEN works on them directly.
=ISBETWEEN(C2, $F$1, $G$1)Lets you change the range without editing the formula.
ISBETWEEN evaluates a single value, but you can apply it to a whole column with ARRAYFORMULA, or use it directly inside FILTER:
=FILTER(A2:D500, ISBETWEEN(C2:C500, 1000, 5000))This returns every row whose value in column C is between 1,000 and 5,000.
To count matches, combine it with SUMPRODUCT or COUNTIF-style logic:
=SUMPRODUCT(--ISBETWEEN(C2:C500, 1000, 5000))=ISBETWEEN($B2, 90, 110).upper_value_is_inclusive set to FALSE, or compare INT(A2).AND(GTE(...), LTE(...)) for reviewers.GTE and LTE for single-sided inclusive checks, GT and LT for strict ones, AND for combining conditions, and COUNTIFS for counting values between two bounds across a range (=COUNTIFS(C:C, ">=1000", C:C, "<=5000")).
A marketing analyst wants only orders placed during a September promotion. With order dates in column A, =FILTER(A2:E1000, ISBETWEEN(A2:A1000, DATE(2026,9,1), DATE(2026,9,30))) returns every order from the campaign window, including the first and last days.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.