SheetRocks
Documentation/Formulas/ISBETWEEN

ISBETWEEN

Returns true if a provided number is between two other numbers either inclusively or exclusively; otherwise returns false.

Syntax

ISBETWEEN(value, lower_value, upper_value, [inclusive_lower_value], [inclusive_upper_value])

Arguments

Argument Description Required
value The value to check if it lies between lower_value and upper_value. Required
lower_value The lower boundary where value or range of values should fall within. Required
upper_value The upper boundary where value or range of values should fall within. Required
inclusive_lower_value Defines whether the value or range of values should include lower_value in comparison or not. Defaults to TRUE. Optional
inclusive_upper_value Defines whether the value or range of values should include upper_value in comparison or not. Defaults to TRUE. Optional

Examples

Check if value is between boundaries (inclusive)

=ISBETWEEN(5, 2, 10)
Result ⇒ true

Check boundary value inclusively

=ISBETWEEN(2, 2, 5)
Result ⇒ true

Check boundary value exclusively

=ISBETWEEN(2, 2, 5, false)
Result ⇒ false

Related Functions

Other Logical functions:


← Back to Formula Reference