The F1 calculation is
If you have a list of all the years in column H then the I5 formula copied across becomes
If you're trying to pick up the first value in every month of the year have you tried Pete's formula which seem to give you what you want when put in I6 and copied down and across.
Is there some over-riding reason you only want to display the last n years defined by F2. It seems to me its more practical to have the years listed in descending order and have the whole table populated. If you want to highlight the latest n years then you could use a conditional format for the table starting at I6
See attached
Bookmarks