My spreadsheet has a range of numbers illustrated by example in the attached file. The values in the range rise steadily to a maximum, then decline steadily after that. I want to find the row number where the value is some arbitrary amount less than the maximum value and have used VLOOKUP to accomplish the task. In the attached spreadsheet, enter a value of “100”, and both instances of vlookup work properly. by returning “10”
However when searching for “170”, the second instance returns a value of “23”, and when searching for “200”, it returns a value of “30”. I can understand that the VLOOKUP function would fail for values “on the downhill slope beyond the maximum”, but it seems to fail even for values less than the maximum.
Is this a bug in VLOOKUP, or is there another way to accomplish the task? In the real spreadsheet, the spreadsheet represents a cost versus age function. I want to find the range of ages where the cost is within a specified tolerance of the maximum value.