XL97: Natural Language Formulas Return Error (157095)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q157095 For a Microsoft Excel 2002 version of this article, see 291241.
For a Microsoft Excel 2001 or Microsoft Excel 98 version of this article, see 180277.
For a Microsoft Excel 2000 version of this article, see 199411.
SYMPTOMS
In Microsoft Excel, if you enter a natural language formula, the following problems may occur:
- You may receive the following error message:
That name is not valid.
-or-
- The cell that contains the formula may contain the #NULL! error value.
-or-
- If you click the Edit Formula button to the left of the formula bar, part of the formula may be converted to a function.
For example, the formula "=Col Row" may be converted to "=Col ROW()."
CAUSE
These problems may occur if any of the following conditions are true:
- The workbook in which you are entering the formula contains a
subroutine or function with a name that is identical to one of the
labels in the formula.
-or- - The workbook in which you are entering the formula contains a
reference to another workbook that contains a subroutine or function
with a name that is identical to one of the labels in the formula.
-or- - The workbook in which you are entering the formula contains a
globally-defined name that is identical to one of the labels in the
formula, or the worksheet in which you are entering the formula
contains a locally-defined name that is identical to one of the labels
in the formula.
-or- - One of the labels in the formula is the same as a function that is
built into Microsoft Excel.
WORKAROUND
To work around these problems, enclose labels in the formulas in
apostrophes ('). For example, change the following formula
to this formula:
If you enclose labels in apostrophes, you prevent them from conflicting with subroutines, functions, and defined names with names that are identical to the labels in the formula. This allows you to retain the subroutine names, function names, and defined names in any of the workbooks.
Modification Type: | Major | Last Reviewed: | 5/16/2001 |
---|
Keywords: | kbprb KB157095 |
---|
|