XL2000: COUNTA Function Returns 1 with Invalid Reference Argument (214322)
The information in this article applies to:
This article was previously published under Q214322 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.
A1: =COUNTA(B0:b10)
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. This behavior is by design of Microsoft Excel.
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.
REFERENCESFor more information about COUNTA worksheet function, click Microsoft Excel Help on the Help menu, type COUNTA worksheet function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbnofix KB214322 |
---|
|