yes and no column

G

Guest

I am a beginner and I have an audit to do. I will need to add up all of the
yes and no answers which are in a single column

Thank you in advance
ferde
 
M

Max

One way ..

Assuming the answers are in col B:

=COUNTIF(B:B,"Yes")
=COUNTIF(B:B,"No")

And if there's the possibility of white spaces creeping into the "Yes" and
"No" answers entered in the column (assuming these were manually input,
say), we could try something like:

=SUMPRODUCT(--(TRIM($B$1:$B$100)="Yes"))
=SUMPRODUCT(--(TRIM($B$1:$B$100)="No"))

The TRIM() will remove all the extraneous leading / trailing white spaces
(if any) for a more robust match

Adapt the ranges to suit. Note that we can't use entire col references (A:A,
B:B, etc) in SUMPRODUCT
 

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