G
Guest
I am trying to use the vlookup function (probably) to draw a value from a matrix based on a variable from a spreadsheet which would direct which column from the matrix to draw the end result. I.e. the spreadsheet would list a date and the vlookup function would go to the matrix and find the date in the left column, from there the spreadsheet would specify another variable which would be a time range (1 year, 2 years, 3 years, etc), those time ranges would be the matrix columnar headings. Based upon the time range variable noted in the spreadsheet, the applicable value would be selected from the matrix based upon the date in the left column and the period in the top row. See below for the sample matrix:
1 year 2year 3year 4year
Jan 1.1 2.2 3.3 4.4
Feb 1.5 1.9 2.1 3.1
Mar 1.8 2.2 2.8 3.0
Apr 1.6 1.9 2.0 2.5
May 1.5 1.8 2.2 2.4
1 year 2year 3year 4year
Jan 1.1 2.2 3.3 4.4
Feb 1.5 1.9 2.1 3.1
Mar 1.8 2.2 2.8 3.0
Apr 1.6 1.9 2.0 2.5
May 1.5 1.8 2.2 2.4