COUNT A YES STATEMENT AGAINST A NAME

D

Dave

Hi, I have sheet with a list of 5 names in and another sheet with the same
names (about 5000) in total and yes or no recorded against each of these
names.

How do I count from the how many times yes is against a particular name?

Thanks
 
J

Jacob Skaria

Suppose you have the 5000 names in Sheet2 Name in ColA and Yes/No in ColB

In sheet1 you have the 5 names in A1:A5. In B1 enter the below formula and
copy that down to A5

A1 = name1
In B1
=SUMPRODUCT(--(Sheet2!$A$1:$A$5000=A1),--(Sheet2!$B$1:$B$5000="Yes"))

If this post helps click Yes
 
E

Ethoros

=SUMPRODUCT((A1:A11="Name")*(B1:B11="Yes")*1)

Change the ranges as needed. Ranges must be equal on both criteria and you
can't just use columns
 
D

Dave

This is great thanks

Ethoros said:
=SUMPRODUCT((A1:A11="Name")*(B1:B11="Yes")*1)

Change the ranges as needed. Ranges must be equal on both criteria and you
can't just use columns
 
D

Dave

This si great thanks

Jacob Skaria said:
Suppose you have the 5000 names in Sheet2 Name in ColA and Yes/No in ColB

In sheet1 you have the 5 names in A1:A5. In B1 enter the below formula and
copy that down to A5

A1 = name1
In B1
=SUMPRODUCT(--(Sheet2!$A$1:$A$5000=A1),--(Sheet2!$B$1:$B$5000="Yes"))

If this post helps click Yes
 

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