IFERROR(HLOOKUP(D22,D6:H19,14,TRUE),"Value Not Found")
With the 'range lookup' set to 'TRUE', I expected the HLOOKUP formula to find the closest value to the 'lookup value' and return a value according to the 'row index' which is the year.
Please see the attached spreadsheet.
Example 1. The 'lookup value' is $400,000 and it does not find a value closest to $400,00.00 even though the 'range lookup' is set to 'TRUE' which is designated as an approximate value.
Example 2. As expected, the formula renders the correct year if a value of $500,000 is entered if $500,000 is in row one.
Example 3. The value of $477,637.16 is entered in row 1 and it can't find the year, even though it is an exact match.
What I want to happen is that the closest match to the entered dollar amount is looked for in row one and the year that dollar amount is achieved, or the closest match, is shown as the year.
HLOOKUP.xlsx
Bookmarks