CountA problem

J

Jim

I am using the formula as shown below, but I want to exclude the letter D or
d
from the count, any ideas?
Thanks
Jim

=COUNTA(E3:E148)
 
G

Gary''s Student

=COUNTA(E3:E143)-COUNTIF(E3:E143,"D")

will exclude both upper and lower case d
 
P

PCLIVE

Your formula will count anything that is not "D". COUNTA was the original
formula which counts non-blanks. I assuming the OP wants to count all
non-blank cells that are NOT "E".

Either mine or Gary"s Student's suggestion should do the trick.

=SUMPRODUCT(--(E3:E148<>"d"),--(E3:E148<>""))

=COUNTA(E3:E143)-COUNTIF(E3:E143,"D")

Regards,
Paul


--
 
P

PCLIVE

You've been given a couple of suggestions that work, including one that uses
COUNTA. Did they not work? You may need to elaborate on what you're trying
to do.

Regards,
Paul

--
 
Top