Counting the number of 'yes' values for unique individuals

Major_Sharpe

New Member
Joined
Nov 11, 2017
Messages
2
Hello there,

I have hit a bit of a stumbling block in a spreadsheet I am attempting to make.

The sheet comprises of a unique reference number, a name, and a yes or no entry.

I have a sumproduct / countif formula to count the number of unique contractors (based on the ref number). However, what I need is to be able to count the number of the individual names, that have a "yes" in column C.

A sample of the sheet:

Ref No.NameCall made?
001/17SmithYes
002/17JonesYes
003/17WilliamsNo
004/17DaviesNo
004/17DaviesYes
004/17DaviesYes
005/17ThomasNo
006/17JohnsonYes

<tbody>
</tbody>

So, as you can see, there are occasions where a name/ ref no. will initially be a no. But will then later be a yes, sometimes twice. (004/17 Davies).

Can anyone help me with a formula that would count these yes', but only when they are unique. So Davies would count a yes, but only once? In the above example, the calculation should equal 4.

I really hope this makes sense, and apologies if it does not!

I am using Office 2007.

Many Thanks in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF(1-($A$2:$A$9=""),IF($C$2:$C$9="yes",MATCH($A$2:$A$9,$A$2:$A$9,0))),ROW($A$2:$A$9)-ROW($A$2)+1),1))
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top