counting text in a column

G

Guest

MD RN RT
y na na
n y y
y n na
na y n

I would like to total the Y and N from each column but ignore the NA

Thank you for your help
ferde
 
C

Colin Vicary

Hi

Assuming you column heading is in A1, paste this in an empty cell

=COUNTIF(A2:A5,"Y")+COUNTIF(A2:A5,"N")

Coli
 
P

Paul Sheppard

ferde said:
MD RN RT
y na na
n y y
y n na
na y n

I would like to total the Y and N from each column but ignore the NA

Thank you for your help
ferde

Hi Ferde

Assuming Header rows are in row 1, and data in a2:c5

To Count just the "Y"'s use =COUNTIF(A2:A5,"Y") in A6 and drag across
to C6

To Count just the "N"'s use =COUNTIF(A2:A5,"N") in A6 and drag across
to C6

And to count both use =COUNTIF(A2:A5,"Y")+COUNTIF(A2:A5,"N") in A6 and
drag across to C6


Change ranges to suit your data


Hope this helps

Paul
 

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