Hello,
I don't live in the same country as you do, so I may not understand the terminology. But looking at your data, with brackets
where would a value of 259 sit? In the >x for row 1 or in the <x for row 2? It either needs to be
or
Which one is it?
Judging by your formula, it is the second option (and you can subsequently remove column B, since it is no longer required. With column A set up in this way, the brackets are already defined and can be used for a lookup formula)
Take this one for a spin in M10
=LOOKUP($L$6,$A$7:$A$22,$C$7:$C$22)*($L$6+0.99)-LOOKUP($L$6,$A$7:$A$22,$D$7:$D$22)
Lookup will try to find an exact match of L6 in column A. If an exact match for L6 is not found in column A, it will find the next smallest number in column A. In this format, Lookup will return the value of column C in the same row. The first lookup finds the a of the formula ax-b , the second lookup finds the b (from column D).
cheers, teylyn
Bookmarks