I have a heavy duy reopt I am creating with an abundance of historical data. The dates are not "static" so as time progresses these dates on the report to pull in needed data will change. I was initially doing a VLOOKUP to get the values I needed, then I realized that I have historical data, so it seemed more suiting to come up with an alternative that can grow as the report does
I created a Table that lists the Year as the main criteria, based on this, I would like it to select a specific table for the VLOOKUP, which would have a named range, for example...
cell C20 - 8/1/2015
Cell D20 - 2015
Based on cell D20 (2015) I would like to use my HistoricalTable to determine which of the current years data I have on file I need to use, based on 2015, the named range (2nd column) would be data_2015. Then the named range of data_2015 would be used. Based on the date in cell C20, the VLOOKUP for the named ramnge (data_2015) would look at the 3rd column of the table below, which shows row 17. There is a secondary set of formulas that use the row # listed in the final column, which would be row #19 ijn this case. Now obviously, if the date is 2/1/2016 in cell C20, that means cell D20 would be 2016, and the table below shows that the range would be data_2016, and the row #s used would be 27, and then 29. I require all these to change based on these dates. Does that make sense?
Year Range 1st Row 2nd Row 2014 data_2014 7 9 2015 data_2015 17 19 2016 data_2016 27 29
Bookmarks