chk_range function

Checks range of non-missing values