text formulas

G

Guest

I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??
 
M

Mangus Pyke

I have "Y,N,&NA" in one column. In another column off to the right I am
counting those inputs. A total is then calculating those Y(which formulate
to be 100%) and N (which formulate to be 0%) and then averaging them.

However, I don't want the NA to be part of the average. Meaning, if NA is
input, then the count would be NA, instead of 0% (like the N). It throws off
the average and I want it excluded from the avg calculation

Any thoughts on how to get this to work??

For the percentage of Y:

=COUNTIF(A1:A100,"=Y")/COUNTIF(A1:A100,"<>NA")

For the percentage of N:

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

MP-
 
G

Guest

That one seems to work. However, it gives me the"#DIV/0" and I need them to
read "NA" in that cell for my average calculation to work. Any more
thoughts??
 

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