Excel Off The Grid will show you how to work smarter, not harder with Microsoft Excel.
Excel charts can expand with a growing dynamic array, but charts built from multiple arrays may stop including new data; named ranges and VBA can reconnect those chart ranges. This approach is aimed at Excel users who maintain charts with several dynamic arrays, series, or data labels. Excel Off The Grid demonstrates the steps in a YouTube video, using a slope graph as an example.
A chart based on a single dynamic array can update when the array expands. In the demonstration, the array is linked to a table, and adding another row expands both the array and the chart. That behavior changes with a more complex chart that combines multiple dynamic arrays and ranges.
The example is a slope graph, assembled from native chart elements and formulas rather than selected from Excel’s built-in chart types. When a new product is added to the source table, the dynamic arrays expand, but the chart does not include the new item. Its series still use fixed cell references from when the chart was created.
The workaround is to define a name for each spill range, then use the names in the chart’s series and data-label settings. A spill range is the cells populated by a dynamic-array formula; the # operator refers to that full range. VBA macros speed up the repetitive naming and chart-editing steps.
This method suits analysts, report authors, and Excel power users who already use dynamic-array formulas and need a multi-range chart to follow changing data. The workbook in the demonstration uses functions including LET, WRAPROWS, EXPAND, and TOCOL. Familiarity with dynamic arrays helps when setting up the ranges and diagnosing a chart that does not update.
The macro approach requires VBA code and a Personal macro workbook, named PERSONAL.XLSB in the demonstration. If that workbook does not exist, it must be created before storing the macros there. The macros can then be added to the Quick Access Toolbar so they are available while working in Excel.
For a simpler chart based on ordinary records, an Excel Table is a practical starting point: the research for this article describes creating the chart from a table and adding new records directly below it. The VBA workflow addresses a more specialized case where several dynamic arrays feed chart elements.
Identify each dynamic array that supplies the chart. Select a cell in the spill range and create a named range that refers to the full range with the # operator. In the example, the name is scoped to the Final worksheet and refers to a cell such as F5#.
Repeat that step for each array used by the chart, including arrays used for labels. The video’s first macro, CreateSpillName, prompts for a name, checks whether it is valid, and creates a name based on the selected spill range.
Make sure the existing data covers the entire dynamic-array range before running the chart macro. The demonstration restores the new row before running it so the macro can match the chart’s current ranges against the named ranges.
Select the chart and run ReplaceRangeWithSpillName. The macro checks the selected chart and replaces matching fixed references in its series and data labels with the corresponding names.
Add the macros to the Quick Access Toolbar through its drop-down menu and More Commands. Choose Macros, select each macro, and use Add; the Modify option can change its displayed name and icon.
After the chart has been updated to use the names, adding a new item to the source table can flow through the arrays into the chart. In the demonstration, the added item appears in the slope graph and can also be selected from its drop-down list. The central benefit is replacing several manual chart edits with a repeatable macro run.
For readers working in Excel, the key distinction is whether the chart uses one expanding source or several ranges that need to be kept aligned.
The named-range and VBA method requires more setup than a basic chart. Every dynamic array needs an appropriate name, and the chart must be selected when the replacement macro runs. The data also needs to cover the full spill range at that point so the macro can find matching ranges.
VBA is not necessary for every expanding chart. For a straightforward chart, use an Excel Table as the source and add records directly below it. For the more complex chart in the demonstration, a single array is not enough to keep all series and label ranges synchronized; named ranges provide the link that the fixed references lack.
The demonstrated macros can create names and replace chart references, but the video’s proposed one-click process that creates all names automatically is described as a possible future project, not as part of the working solution. Test the setup on a copy of a workbook before relying on it in a recurring report, and verify that the series and labels reference the intended names.
A chart based on one dynamic array can expand with that array. In a chart that uses multiple dynamic arrays, series and data labels may still point to fixed cell references.
Create a named range for the spill range using the # operator, then use the name in the relevant chart series or data-label range.
CreateSpillName creates a named range from the selected dynamic array. ReplaceRangeWithSpillName replaces matching fixed references in the selected chart’s series and data labels with named ranges.
The demonstrated macros are stored in PERSONAL.XLSB and added to the Quick Access Toolbar through its drop-down menu and More Commands.