I have a matrix data set for the returns on treasury bonds where the column (column A) sets the observation date and the row (row 1) sets the expiration date of the bond.
I wish to output a return given both an observation and expiration date. While the observation date must match a date in the dataset, the expiration date can be any date you wish.
Given my chosen expiration date will likely fall between two dates in the dataset, i must therefore interpolate between two expiration dates. This must be done with the return closest in expiration date either side of the chosen date.
The issue is that there will often be times where there is no data available (cell is blank) for the expiration date closest to either side of the chosen date. Can a formula be written that allows me to be dynamic in choice of observation date and expiration date and output the interpolated return?
Please see the attached worksheet as a reference with an example calculation
Bookmarks