Sorry - rushed off an answer and didn't have time to construct sample data. Now that you have posted some data it is a lot easier. The arguments of ADDRESS() are row number and column number - with a further argument that sets the referencing as fully absolute (1) to fully relative (4). We need to add the row offset.
The MATCH() which is the first argument of the first ADDRESS function sets the row with a start value of 1 - thus we add 4 if the range starts in row 5. This also has to be applied to the second ADDRESS function used to get the second data value address.
What you probably need is
A combination of VLOOKUP/MATCH/INDEX could be used return the appropriate values from column AI for use in the interpolation; would it not be easier to use those rather than going to cell references that will break if the sheet structure is altered? (There are other performance disadvantages of using CELL("col",AH5) etc for getting the required offsets.)
A linear interpolation would be as per the cells in AK3, AN6 in the attached workbook.
Is this what you need?
Bookmarks