COUNTA Function Returns 1 with Invalid Reference Argument (184105)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
This article was previously published under Q184105 SYMPTOMS
If you type an invalid cell reference as an argument for the COUNTA
worksheet function, the result is 1. For example the following function
returns 1 in A1.
NOTE: The second character of the first cell reference is the number zero.
CAUSE
This problem occurs because the COUNTA function interprets the invalid
reference as the #NAME? error value and the function counts this one error
value.
RESOLUTION
To resolve this problem and count the number of nonblank cells in a range,
type a valid reference for the range in the COUNTA worksheet function.
STATUS
This behavior is by design of Microsoft Excel.
REFERENCES
For more information about the COUNTA worksheet function, click Contents
And Index on the Help menu, click the Index tab in Microsoft Excel Help,
type the following text
COUNTA worksheet function
and then double-click the selected text to go to the "COUNTA" topic. If
you are unable to find the information you need, ask the Office Assistant.
Modification Type: | Minor | Last Reviewed: | 8/17/2005 |
---|
Keywords: | kbprb KB184105 |
---|
|