count errors

S

stef

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.
 
D

Dave Peterson

How about:

=COUNTIF(A:A,"#n/a")


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.
 
D

Dave Peterson

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.
 
B

Biff

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
 
S

stef

That's it. Thanks
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
 
S

stef

yes that's it, as if Biff's post.
thanks!

Dave said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top