Microsoft KB Archive/214349

= XL2000: "Reference Is Not Valid" Error Message When You Create PivotTable =

Article ID: 214349

Article Last Modified on 9/27/2003

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition

-



This article was previously published under Q214349





SYMPTOMS
If you click PivotTable and PivotChart Report on the Data menu and then click Next to proceed to step 2 of the PivotTable and PivotChart Wizard, the Range reference box may contain the word "Database."

If you click Next again, you may receive the following error message:

Reference is not valid.



CAUSE
This problem may occur if the following conditions are true:
 * You display the data form in Microsoft Excel by clicking Form on the Data menu.

-and-
 * You create the PivotTable in the same worksheet in which you previously displayed the data form.

When you display the data form, Microsoft Excel creates an invisible name called "Database." This invisible name is automatically detected by the PivotTable and PivotChart Wizard. However, the wizard cannot correctly use this invisible name. This name is used only by the data form.



WORKAROUND
To work around this problem, select the range for the list that you want to use in the PivotTable, and then click Next.

You can also delete the invisible name "Database". To do so, follow these steps:
 * 1) Select any cell in the worksheet.
 * 2) On the Insert menu, point to Name, and then click Define.
 * 3) In the Names in workbook box, type Database, and then click Add.
 * 4) Click Delete, and then click Close.

If you create a PivotTable, the "Database" name does not appear in step 2 of the wizard.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
You can use the data form in Microsoft Excel to see, change, add, delete, and find records in a list or in a database. To use the data form, select any cell in a list or in a database, and then click Form on the Data menu.

Normally, if the "Database" defined name exists in a worksheet, the PivotTable Wizard correctly uses the range of cells referenced by the defined name. However, if the name "Database" was created by the data form, the name cannot be used by the PivotTable Wizard.

Additional query words: pivot tables XL2000

Keywords: kberrmsg kbbug kbpending KB214349

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.