I have some forecast data which is currently structured like so (i made the below in excel just to give you an idea) -
The data is sorted according to the settlement date (ascending). Also there are 3 forecasts a day as you can see in the LHS column (note that these times are not static and can vary by a few minutes).
What I would like to have is a column at the end of the table, containing a list (per each row or settlement date) which shows all of the forecast timestamps -> which are between the settlement date for that row and the settlement date - 14 days.
So for example, if the row's settlement date was the 15th January; there would be a list containing all of the 14 * 3 time stamps = 42 time stamps (1 Jan 09:30, 1 Jan 14:30, 1 Jan 21:30, ... 14 Jan 21:30 ) between the 1st and 15th January.
I'm thinking this could be done by a "vlookup" in to a column of all distinct time stamps (which I've been able to create), I'm just unsure of how to create this additional column.
Once I've created this column of lists - I would then like to do another "vlookup" for each time stamp inside that list and retrieve the values for Period 1, Period 2, ..., Period n.
Any help would be greatly appreciated!
forecast timestamp | settlement date | Period 1 | Period 2 | … | Period n |
01/01/2000 09:30 | 05/01/2000 | 0.899914 | 0.451563 | 0.608477 | 0.009698 |
06/01/2000 | 0.891523 | 0.82422 | 0.030027 | 0.0654 | |
07/01/2000 | 0.663729 | 0.297937 | 0.874033 | 0.743295 | |
08/01/2000 | 0.500766 | 0.565275 | 0.142954 | 0.652788 | |
09/01/2000 | 0.194198 | 0.017105 | 0.936981 | 0.884122 | |
10/01/2000 | 0.50848 | 0.488765 | 0.689477 | 0.405967 | |
01/01/2000 13:30 | 05/01/2000 | 0.822775 | 0.338863 | 0.556413 | 0.194292 |
06/01/2000 | 0.143446 | 0.136207 | 0.742118 | 0.850311 | |
07/01/2000 | 0.623409 | 0.193469 | 0.142194 | 0.321664 | |
08/01/2000 | 0.810111 | 0.017459 | 0.896612 | 0.628561 | |
09/01/2000 | 0.640997 | 0.17688 | 0.871779 | 0.345542 | |
10/01/2000 | 0.468783 | 0.218556 | 0.158336 | 0.987228 | |
01/01/2000 21:30 | 05/01/2000 | 0.593771 | 0.506665 | 0.664236 | 0.094826 |
06/01/2000 | 0.392837 | 0.402604 | 0.358911 | 0.831175 | |
07/01/2000 | 0.811633 | 0.23189 | 0.068549 | 0.602519 | |
08/01/2000 | 0.378539 | 0.907786 | 0.68405 | 0.132635 | |
09/01/2000 | 0.068982 | 0.477773 | 0.283442 | 0.547764 | |
10/01/2000 | 0.303974 | 0.48517 | 0.971859 | 0.823869 |
The data is sorted according to the settlement date (ascending). Also there are 3 forecasts a day as you can see in the LHS column (note that these times are not static and can vary by a few minutes).
What I would like to have is a column at the end of the table, containing a list (per each row or settlement date) which shows all of the forecast timestamps -> which are between the settlement date for that row and the settlement date - 14 days.
So for example, if the row's settlement date was the 15th January; there would be a list containing all of the 14 * 3 time stamps = 42 time stamps (1 Jan 09:30, 1 Jan 14:30, 1 Jan 21:30, ... 14 Jan 21:30 ) between the 1st and 15th January.
I'm thinking this could be done by a "vlookup" in to a column of all distinct time stamps (which I've been able to create), I'm just unsure of how to create this additional column.
Once I've created this column of lists - I would then like to do another "vlookup" for each time stamp inside that list and retrieve the values for Period 1, Period 2, ..., Period n.
Any help would be greatly appreciated!