Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Invalid External Reference Error When Creating Chart


View products that this article applies to.

This article was previously published under Q259625

↑ Back to the top


Symptoms

When you click Finish or Next in step 2 of the Chart Wizard, you may receive the following error message:
Your formula contains an invalid external reference to a worksheet.

Verify that the path, workbook, and range name or cell reference are correct, and try again.

↑ Back to the top


Cause

This behavior occurs when the reference in the Data Range box of the Chart Wizard is truncated, because it exceeds a length of approximately 235 characters.

Whether or not you receive the error message depends on how the reference is truncated. For example, if the reference "Sheet1!A10" is truncated to "Sheet1!A1", no error message appears because A1 is a valid reference, but the chart plots the incorrect cell value. (This behavior is a limitation of the Refedit control that the Data Range box uses.) However, if the reference is truncated to an invalid reference, such as "Sheet1!A" or "Shee", you receive the error message.

This behavior may occur when you create a chart with the Chart Wizard or modify an existing chart with the Chart Wizard.

↑ Back to the top


Workaround

To work around this behavior, reduce the length of the series. To do this, use any of the following methods:
  • Shorten the name of the worksheet used for the data range of the chart.
  • If your chart series refers to another workbook, also try shortening that workbook's file name.
  • If the data range for the chart is a noncontiguous selection, move all the data to a contiguous range in a new worksheet.

↑ Back to the top


More information

When this truncation occurs, the reference is always truncated in the Data Range dialog box in step 2 of the Chart Wizard, and in the Data Range box in the Source Data dialog box. The reference appears correctly as the third argument of the SERIES formula.

↑ Back to the top


Keywords: KB259625, kbpending, kbprb, kbchart, kberrmsg

↑ Back to the top

Article Info
Article ID : 259625
Revision : 3
Created on : 9/25/2003
Published on : 9/25/2003
Exists online : False
Views : 183