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: Error Using Defined Name That Refers to a Constant Value


View products that this article applies to.

This article was previously published under Q214376

↑ Back to the top


Symptoms

When you enter a formula in a cell in Microsoft Excel, or when you open a workbook in Microsoft Excel, you may receive the following error message
Microsoft Excel cannot find '<Name>' on '<Workbook name.xls>'.
where <name> represents the defined name and <Workbook name.xls> represents the name of your workbook. After you receive the error message, any formulas in the workbook that refer to the defined name return the #REF! error value (invalid cell reference).

↑ Back to the top


Cause

This problem occurs if the following conditions are true:
The workbook that contains the defined name is not open.

-and-
The defined name refers to a constant value instead of a cell reference or another defined name, for example: =37
="Hello"

↑ Back to the top


Workaround

To work around this problem, use either of the following methods.

Method 1

Open the workbook that contains the defined name.

When the workbook that contains the defined name is open, formulas in other workbooks that refer to the defined name return the correct value.

Method 2

Instead of storing the constant value in the defined name, store the value in a worksheet cell in the workbook, and then change the defined name so that it refers to the worksheet cell. For example, if the defined name refers to the value "=37", follow these steps:
1.Type the constant value (for example, 37) in a cell (for example, B5) in a worksheet in the workbook.
2.On the Insert menu, point to Name and click Define.
3.In the Names in workbook edit box, type the name you want to define.
4.In the Refers to edit box, type =Sheet1!$B$5. Or, select the cell.
5.Click OK.

↑ Back to the top


Status

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

↑ Back to the top


Keywords: KB214376, kbpending, kbbug, kberrmsg

↑ Back to the top

Article Info
Article ID : 214376
Revision : 3
Created on : 9/27/2003
Published on : 9/27/2003
Exists online : False
Views : 223