Counting cells that do not contain N/A

A

Adam

Please could someone provide me with a formula that would allow me to count
the number of cells that do not contain N/A as an entry.

Thanks
Adam
 
S

Sandy Mann

=SUMIF(G1:G11,"<>#N/A",G1:G11)

But it is FAR better to deal with the #N/A error at source:

=IF(ISNA(<your formula>),"",<your formula>)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
P

Pete_UK

If N/A has been typed in (rather than the error #N/A), then try this:

=COUNTIF(A1:A100,"<>N/A")

Hope this helps.

Pete
 
S

Sandy Mann

Pete,

If N/A was typed in and thus text, wouldn't SUM() ignore it anyway?

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
S

Sandy Mann

I think papou meant:

=COUNTIF(A1:A1500,"<>#N/A")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
P

Pete_UK

Hi Sandy,

the OP was asking about count - if he used COUNT and the values were
numbers then this would ignore it (and he wouldn't have the problem),
so I assumed they must be text values and he was using COUNTA. I was
also making the distinction between #N/A and N/A, so the OP could put
in the appropriate one if he really meant #N/A.

There's a bit of logic to my posts now and then !! <bg>

Pete
 
S

Sandy Mann

Sorry Pete,

Not only did I misread your post,I misread the OP's post as well A double
goof!

My apologies to you both.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
P

papou

Hello Sandy

Yes definitely, thank you for your amendment.
My apologies to Adam.

Cordially
Pascal
 
P

Pete_UK

Hi Sandy,

I often wish I could delete posts when I realise I've goofed <bg>

No problems !

Pete
 
Top