How to Create Dynamic Excel Chart Series From Worksheet Names
Question details
The user needs to construct dynamic data series for Excel charts by using worksheet names that are stored within specific cells.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Building dynamic references for chart series data so the chart automatically updates when pointing to different worksheet names.
- Observed behavior
- Incorrect absolute and relative references within Name Manager formulas cause charts to appear blank or produce invalid-reference errors.
Ensure your target worksheet names do not contain unsupported special characters, and verify that the source cells contain the exact matching sheet names to prevent formula evaluation errors.
Create Dynamic Chart Series Using Name Manager and INDIRECT
Define named formulas with the INDIRECT function to construct worksheet references dynamically from cell values.
To make a chart series dynamic based on a worksheet name, you cannot insert cell references directly into the chart's Select Data dialog. Instead, you must combine the INDIRECT function with the Excel Name Manager.
Navigate to the Formulas tab on the ribbon and click on Name Manager. Click the New button to create a new named range.
In the 'Refers to' box, use the INDIRECT function to reference the cell containing your worksheet name. Be sure to include proper single quotes for the sheet name syntax. For example: =INDIRECT("'" & Sheet1!$A$1 & "'!$B$2:$B$10").
Ensure you lock the required row and column references in your formula string using dollar signs ($) so the range remains constant when the chart evaluates it.
Right-click your chart, select Select Data, and click Edit on the target series. In the Series Values box, enter your workbook name followed by the named range (e.g., =WorkbookName.xlsx!YourNamedRange) and click OK.

Use WPS Spreadsheet for Dynamic Data Visualization
WPS Spreadsheet provides powerful support for named ranges, the INDIRECT function, and dynamic chart generation. Easily build data visualization dashboards with seamless compatibility with Microsoft Excel files.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook containing the chart and worksheet names.
- 2. Access the Name Manager: Navigate to the Formulas tab and click on Name Manager to define your dynamic series range.
- 3. Input the Formula: Create a new name and input your INDIRECT formula referencing the cell with the sheet name.
- 4. Update Chart Data: Right-click the chart, choose Select Data, and replace the static series values with your newly created named range.

Frequently Asked Questions
Why does my dynamic chart series show an invalid-reference error?
This usually happens when the named range formula is incorrect or the referenced worksheet name contains spaces but lacks the required single quotes in the INDIRECT formula string. Ensure you use ' around the sheet name reference in your concatenation.
Can I use the OFFSET function instead of INDIRECT for dynamic charts?
Yes, OFFSET is frequently used with the COUNTA function to create dynamic ranges that expand as you add new rows of data. However, INDIRECT is specifically needed when dynamically pointing to different worksheet names based on a cell's text value.
Why does my Excel chart turn blank after assigning the named range?
A blank chart often indicates that the named range evaluates to empty cells or formula errors. Test the exact named range formula in a standard spreadsheet cell to see what data it is actually retrieving.
Do I need to include the workbook name in the chart series formula?
Yes, when assigning a defined named range to a chart series, Excel requires you to prefix the named range with the current workbook or worksheet name, formatted like =MyWorkbook.xlsx!NamedRange.




