notbetween(
VALUE
,
MINIMUM
,
MAXIMUM
)

The notbetween( function checks to see if a value is not between two other values.


Parameters

This function has three parameters:

value – the value to check. The value may be a number, date or text.

minimum – the minimum value that matches. The minimum must be the same type as the value parameter.

maximum – the maximum value that matches. The maximum must be the same type as the value parameter.


Description

This function checks to see if a value is between two other values. The result will be false if the value is equal to either the minimum or maximum value or lies between them. If the value is outside this range the result will be true.

notbetween(15,10,20) ☞ 0 (false)
notbetween(45,10,20) ☞ -1 (true)
notbetween("m","a","g") ☞ -1 (true)
notbetween("c","a","g") ☞ 0 (false)
notbetween(today(),date("monday"),date("friday")) ☞ 0 (false)

The final example above checks to see if today is a weekend. If today is Monday thru Friday the formula returns false, for Saturday and Sunday, it returns true.

Note: This function is equivalent to:

thevalue<themin or thevalue>max

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.