XL 2002 SP3
Win XP HE SP1
Follow-up to: microsoft.public.excel
How do I count errors #N/A in column A that has both errors and proper
values in some of its rows?
I am trying a countif but struggling w/ the error part e.g. isna or
iserror, etc.
tx.
Dave Peterson - 12 Oct 2006 01:04 GMT
How about:
=COUNTIF(A:A,"#n/a")
> XL 2002 SP3
> Win XP HE SP1
[quoted text clipped - 8 lines]
>
> tx.

Signature
Dave Peterson
stef - 12 Oct 2006 01:11 GMT
sure i can do that but it's not optimal since the error "code" could be
different....
> How about:
>
[quoted text clipped - 12 lines]
>>
>> tx.
Dave Peterson - 12 Oct 2006 01:27 GMT
I was confused by your post. I thought you wanted to only count N/A errors:
=SUMPRODUCT(--ISERROR(A1:A100))
Extend the range, but don't use the whole column.
> sure i can do that but it's not optimal since the error "code" could be
> different....
[quoted text clipped - 15 lines]
> >>
> >> tx.

Signature
Dave Peterson
stef - 12 Oct 2006 03:28 GMT
yes that's it, as if Biff's post.
thanks!
> I was confused by your post. I thought you wanted to only count N/A errors:
>
[quoted text clipped - 21 lines]
>>>>
>>>> tx.
Biff - 12 Oct 2006 02:32 GMT
Try this:
=SUMPRODUCT(--(ISNA(A1:A100)))
That will only count #N/A errors. It won't count #Value! or #REF! or #NUM!
etc.
If you want to count ALL errors:
=SUMPRODUCT(--(ISERROR(A1:A100)))
Biff
> XL 2002 SP3
> Win XP HE SP1
[quoted text clipped - 8 lines]
>
> tx.
stef - 12 Oct 2006 03:27 GMT
That's it. Thanks
> Try this:
>
[quoted text clipped - 21 lines]
>>
>> tx.
Biff - 12 Oct 2006 05:12 GMT
You're welcome!
Biff
> That's it. Thanks
>
[quoted text clipped - 23 lines]
>>>
>>> tx.
Teethless mama - 12 Oct 2006 03:44 GMT
=COUNTIF(A1:A100,#N/A)
> XL 2002 SP3
> Win XP HE SP1
[quoted text clipped - 8 lines]
>
> tx.