Article ID: 184105
Article Last Modified on 8/17/2005
APPLIES TO
- Microsoft Excel 97 Standard Edition
- Microsoft Excel 95 Standard Edition
- Microsoft Excel 5.0 Standard Edition
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.
Additional query words: XL97 xl95 xl7 xl5 XL
Keywords: kbprb KB184105