Knowledge Base

MacXL: Natural Language Formulas Return Error

Article ID: 180277

Article Last Modified on 1/22/2007


APPLIES TO


This article was previously published under Q180277
For a Microsoft Excel 2002 version of this article, see 291241.
For a Microsoft Excel 2000 version of this article, see 199411.
For a Microsoft Excel 97 version of this article, see 157095.

SYMPTOMS

In Microsoft Excel, if you enter a natural language formula, the following problems may occur:

CAUSE

These problems may occur if any of the following conditions are true:

WORKAROUND

To work around these problems, enclose labels in the formulas in apostrophes ('). For example, change the following formula

=Charlie Tango

to this formula:

='Charlie' 'Tango'

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.

MORE INFORMATION

In Microsoft Excel, natural language formulas allow you to refer to values in tables of information without having to define names or use bulky INDEX-MATCH style formulas.

Example

The following is an example that demonstrates how natural language formulas work. To use this example, enter the following data:
   A1:           B1: Romeo   C1: Sierra   D1: Tango   E1: Uniform
   A2: Alpha     B2: 1       C2: 2        D2: 3       E2: 4
   A3: Bravo     B3: 5       C3: 6        D3: 7       E3: 8
   A4: Charlie   B4: 9       C4: 10       D4: 11      E4: 12
   A5: Echo      B5: 13      C5: 14       D5: 15      E5: 16
				
If you enter the information into a new worksheet, you can find values in the table or perform actions on portions of the table by using a natural language formula.

For example, the following formula

=Charlie Tango

returns the value at the intersection of the "Charlie" row and the "Tango" column. In this case, the result is 11.

The following formula

=SUM(Sierra)

returns the sum of the "Sierra" column, which is 32.

Note that natural language formulas do not work correctly if certain conditions are true. For example, the following formula

=Charlie Tango

fails to work if any of the following conditions are true: To prevent these problems from occurring, enclose your label names within apostrophes.

Additional query words: XL98 natural-language

Keywords: kbprb kbfaq KB180277