count percentages

G

Guest

Is there a way for me to find out the percentage of "yes" answers in the
following example. I know that there are 4 yes and 2 no, but is there a way
to divide 4 by the total number of cells, for when my list becomes hundereds
of cells long?

yes
no
yes
yes
yes
no
4
 
P

Peo Sjoblom

=COUNTIF(A2:A500,"yes")/COUNTA(A2:A500)


format result as percentage

--


Regards,


Peo Sjoblom
 
W

Wondering

Assuming your range is A1:A10, the following counts the number of cells with
"yes" in A1:A10 and divides the count by the number of nonblank cells in
A1:A10

=COUNTIF(A1:A10,"yes")/COUNTA(A1:A10)
 

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