Chart & Visualization Issues

How to Create a Dynamic Chart Range in Excel (Fix Reference Errors)

Ayan MasoodAyan Masood Nov 4, 2026 872 views

Question details

The user needs to successfully create an auto-expanding dynamic chart using OFFSET or INDEX named ranges.

How to Create a Dynamic Chart Range in Excel
Product
Microsoft 365 Excel
Device & OS
not provided
Scenario
Creating a chart data range that automatically expands as new rows are added to the worksheet.
Observed behavior
A dynamic named range is accepted in the Name Manager but produces an error when applied as the chart's data series range, specifically when worksheet names contain spaces.
Before you start

Ensure your chart data is organized in contiguous rows or columns without blank cells, as blank cells can disrupt the counting functions used in dynamic range formulas.

Solution 1Recommended

Fix Worksheet Name Formatting in Name Manager

Resolve chart reference errors by ensuring single quotation marks are added around worksheet names that contain spaces within the dynamic range formula.

When referencing a worksheet name that includes spaces (such as 'Summary One'), the formula requires single quotation marks around the sheet name to process correctly. Missing these quotes will cause an error when you try to apply the named range to a chart.

1
Open Name Manager

Navigate to the Formulas tab on the Excel ribbon and click on Name Manager.

2
Edit the Dynamic Range

Select the dynamic named range you created for your chart and click into the 'Refers to' box at the bottom.

3
Add Single Quotes

Check the worksheet references. If the sheet name contains spaces, enclose it in single quotation marks. For example, use =OFFSET('Summary One'!$AT$5,0,0,COUNTA('Summary One'!$AT$5:$AT$31)).

4
Save the Formula

Click the checkmark icon next to the input box to apply and save the corrected formula.

Fix Worksheet Name Formatting in Name Manager
Automatic Formula Formatting: Excel adds these quotation marks automatically if you build the formula by manually clicking the worksheet and highlighting the range, rather than typing it manually.
Advanced Chart Features

Create Dynamic Charts Easily in WPS Spreadsheet

WPS Spreadsheet offers seamless support for dynamic named ranges, OFFSET, and INDEX functions, making it incredibly simple to create auto-expanding charts. It provides an intuitive interface that automatically handles syntax issues like quotation marks.

  1. 1. Define the Range: Open your file in WPS Spreadsheet, navigate to the Formulas tab, and click Name Manager to create a new named range.
  2. 2. Enter the Formula: Use the OFFSET or INDEX formula. WPS will automatically handle worksheet name syntax (like adding single quotes) when you manually select the data cells.
  3. 3. Insert the Chart: Go to the Insert tab, select your preferred Chart type, right-click the blank chart area, and choose 'Select Data'.
  4. 4. Link the Named Range: In the series values, type your workbook or sheet name followed by the defined name (e.g., Sheet1!MyDynamicData) and click OK.
Fully compatible with Microsoft Excel's .xlsx formats and dynamic chart range formulas.Intuitive Name Manager to effortlessly build OFFSET and INDEX dynamic ranges.Smart syntax correction automatically adds necessary quotation marks for sheets with spaces.Free, lightweight, and fast performance even when visualizing large datasets.
QA img-9

Frequently Asked Questions

Why does Excel throw an error when I use a dynamic named range in a chart?

This usually happens for two reasons: either the worksheet name contains spaces but lacks single quotation marks in the Name Manager formula, or you did not include the workbook/worksheet name when typing the named range into the chart's 'Select Data' dialog (e.g., you typed =DataRange instead of =Book1.xlsx!DataRange).

Can I use INDEX instead of OFFSET for dynamic charts?

Yes, using INDEX is often preferred for dynamic ranges. INDEX is a non-volatile function, meaning it only recalculates when the specific data it references changes. OFFSET is volatile and recalculates every time any change is made in the workbook, which can slow down spreadsheet performance on large datasets.

Why isn't my chart updating automatically when I add new rows?

Check if your dynamic range formula is using the correct counting function. Use COUNTA for columns containing text or mixed data, and COUNT for strictly numerical columns. Also, ensure there are no blank cells within your data column, as a blank cell will disrupt the count and cause the range to fall short.