Hello,
I am trying to create a dynamic chart with the OFFSET function to display 2 data ranges of a factory production planning. Below is an image of the planning sheet, where the first row indicates the date, the second row shows the forecast, and row 13 indicates the processed workload. Based on today (indicated by yellow), I would like to compose a rolling horizon graph that shows a range in the past and a range in the future, that moves as the days progress in time.
I managed to create a rolling forecast horizon by creating chart labels in the ‘Formulas’ --> ‘Name Manager’ tab that look back 2 weeks in time:
=OFFSET('Planning sheet'!$D$13;0;COUNT('Planning sheet'!$13:$13)-2;1;14)
For the formula above, the range is dynamic based on finding the last value cell in row 13. The range is 14 days back in time (14 cells to the left), as can be seen in the image above. In addition, I would like to also show the forecast for the next 7 days in the same graph in a dynamic way (row 2). The chart labels should be changed accordingly and have a range of 3 weeks in total.
Since I cannot use the end of a row as an indicator for the dynamic ranges (the forecast extends further in time), I would like to know if I can use the TODAY() function as an indicator for the dynamic ranges. I tried my best to build dynamic ranges with the TODAY() function, but unfortunately I could not make it work. I hope one of you can help me to incorporate these 2 dynamic ranges into one chart. Thank you in advance.
I am trying to create a dynamic chart with the OFFSET function to display 2 data ranges of a factory production planning. Below is an image of the planning sheet, where the first row indicates the date, the second row shows the forecast, and row 13 indicates the processed workload. Based on today (indicated by yellow), I would like to compose a rolling horizon graph that shows a range in the past and a range in the future, that moves as the days progress in time.
I managed to create a rolling forecast horizon by creating chart labels in the ‘Formulas’ --> ‘Name Manager’ tab that look back 2 weeks in time:
=OFFSET('Planning sheet'!$D$13;0;COUNT('Planning sheet'!$13:$13)-2;1;14)
For the formula above, the range is dynamic based on finding the last value cell in row 13. The range is 14 days back in time (14 cells to the left), as can be seen in the image above. In addition, I would like to also show the forecast for the next 7 days in the same graph in a dynamic way (row 2). The chart labels should be changed accordingly and have a range of 3 weeks in total.
Since I cannot use the end of a row as an indicator for the dynamic ranges (the forecast extends further in time), I would like to know if I can use the TODAY() function as an indicator for the dynamic ranges. I tried my best to build dynamic ranges with the TODAY() function, but unfortunately I could not make it work. I hope one of you can help me to incorporate these 2 dynamic ranges into one chart. Thank you in advance.