Hello Excel Gurus, I have a data file that summarizes information for multiple years (2008-2030) which is summarized in a line chart. For the later years (2023-2030), there is no information currently and thus I do not want the 2023-2030 data to be graphed in my line chart. Is there a macro code to update the source data series values and Category (x) axis labels years based on the years that have data have in them?
For example, my source data chart has years 2008-2030 but currently I only have data for 2008-2023 in my chart. I want the chart to only graph the 2008-2023 data. It is important that the code be flexible to reflect changes in the chart as I may have information in the same chart at a future date that has data for 2008-2028 for example and I ideally it would recognize these "extra" years and update the chart to reflect those years as well. Many thanks in advance!
For example, my source data chart has years 2008-2030 but currently I only have data for 2008-2023 in my chart. I want the chart to only graph the 2008-2023 data. It is important that the code be flexible to reflect changes in the chart as I may have information in the same chart at a future date that has data for 2008-2028 for example and I ideally it would recognize these "extra" years and update the chart to reflect those years as well. Many thanks in advance!