arrayCoverage formula returns type Number
getRage function casts return value to Number
extra check in table lookup