
Originally Posted by
kwinters360
I would like to know is if it is possible to find a exact value for a exact size pipe if the values are not in the lookup table. For instance, if 100" pipe is $400, 200" pipe is $700, 250" pipe is $900. How much would it be 217"?
Try:
That assumes you have 217 in A7, and you have 100, 200, 250 and 251 in A2:A5, and 400, 700, 900 and 900 in B2:B5.
The formula interpolates linearly between two adjacent rows, the first row being the closest to the value in A7, but no more than that value.
I assume A4 contains the largest possible value. The extra row in A5:B5 is needed to simplify the OFFSET expression. A5 can be any value larger than A4; for example, =A4+1. B5 can be any value; for example, =B4.
Bookmarks