Your data is not "almost linear".

Actually, there is no relation among the values at all.

You may want to approximate the values and use Select Case.


What is the sensor you are using?

-----------------------------------