How to Fix OFFSET Named Range Errors in Excel Scatter Charts
Question details
The user wants to use dynamic OFFSET named ranges for X and Y values in an Excel scatter chart but receives an error when applying them.

- Product
- Microsoft Excel
- Device & OS
- Mac
- Scenario
- Adding dynamic data ranges to an XY scatter chart using OFFSET formulas in the Name Manager.
- Observed behavior
- Excel for Mac displays an error message when the user attempts to insert the dynamic named ranges into the chart's series values.
Ensure your Excel workbook is saved locally before editing the chart, and verify that your OFFSET formula evaluates to a valid numerical array without returning #REF! or #VALUE! errors.
Include the Workbook Name in the Series Reference
By default, Excel requires the explicit workbook name when assigning dynamic named ranges to chart series, otherwise it cannot locate the defined names.
When defining standard cell ranges, Excel automatically understands the worksheet context. However, when using dynamic defined names (like those created with OFFSET) inside a chart's Select Data dialog, the chart requires an absolute reference that includes the parent workbook's name.
Before applying the named range, make sure your file is saved so it has a definitive filename (e.g., 'ProjectData.xlsx').
Right-click the XY scatter chart on your worksheet and click 'Select Data' from the context menu to open the series configuration.
Select your data series and click 'Edit'. In the 'Series X values' and 'Series Y values' fields, type the workbook name followed by an exclamation mark and your defined name. For example: `='ProjectData.xlsx'!MyXRange` and `='ProjectData.xlsx'!MyYRange`.
Click 'OK' to close the dialogs. The scatter chart will now successfully read the dynamic data from your OFFSET formulas.

Create Dynamic Scatter Charts with WPS Spreadsheet
Easily build dynamic XY scatter charts using named ranges and OFFSET formulas in WPS Spreadsheet. It offers full compatibility with standard spreadsheet formulas and provides a highly intuitive interface for managing complex chart data.
- 1. Define your dynamic range: Go to the Formulas tab, click Name Manager, and define your dynamic X and Y ranges using the OFFSET function.
- 2. Insert the Scatter Chart: Navigate to the Insert tab, click on the Scatter Chart icon, and insert a blank chart onto your spreadsheet.
- 3. Link the defined names: Right-click the chart, choose Select Data, and input your defined name prepended with the workbook name for both the X and Y values.

Frequently Asked Questions
Why does Excel show an error when I use a dynamic named range in a chart?
Excel charts require an absolute path to evaluate a named range. Unlike a cell formula that defaults to the current workbook, a chart series cannot resolve a defined name on its own. You must explicitly include the workbook name (e.g., `='Book1.xlsx'!DynamicRange`) so the chart engine knows where the name is stored.
How do I create a dynamic named range using OFFSET?
In the Name Manager, define a new name and use an OFFSET formula combined with COUNTA. For example, `=OFFSET(Sheet1!$A$1, 0, 0, COUNTA(Sheet1!$A:$A), 1)`. This formula creates a range starting at A1 that automatically expands downwards as you add new non-empty data to column A.
Does this workbook naming rule apply to all chart types?
Yes, this requirement applies to any chart type in Excel (including Bar, Line, and Pie charts) when you are using defined names for the series values or category axis labels, not just XY scatter charts.




