Count text formula based on multi-criteria excluding duplicates

mcbiz77

New Member
Joined
Feb 9, 2016
Messages
17
Hello,
I'm looking for a count formula that counts the total number of sheets per person excluding duplicates. For example, below Nate has FTM01 and SM02 sheets assigned to him. His name is shown as 3 times in the table but the sheet names are the same for two of the items below. The answer needs to show that Nate has 2 sheets and Vito has 1 sheet. Please help me in finding a formula.

[TABLE="width: 213"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD][TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]Nate
[/TD]
[TD]FTM01[/TD]
[/TR]
[TR]
[TD]Nate[/TD]
[TD]FTM01[/TD]
[/TR]
[TR]
[TD]Vito[/TD]
[TD]BD02[/TD]
[/TR]
[TR]
[TD]Nate[/TD]
[TD]SM02[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][/TD]
[/TR]
</tbody><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
The formula should spit out the following result

Nate - 1 (meaning he has one process sheet that has NO)
Vito - 1 (meaning he has one process sheet that has NO)

**** the most important thing is that even though Nate has 3 sheets, 2 of them are duplicate sheets. So, if the first two rows had a No and No then it would need to count that as 1 NO since they are duplicate sheets.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The formula should spit out the following result

Nate - 1 (meaning he has one process sheet that has NO)
Vito - 1 (meaning he has one process sheet that has NO)

**** the most important thing is that even though Nate has 3 sheets, 2 of them are duplicate sheets. So, if the first two rows had a No and No then it would need to count that as 1 NO since they are duplicate sheets.

You posted...

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][/tr]
[tr][td]
1​
[/td][td]name[/td][td]sheet[/td][td]yes/no[/td][/tr]


[tr][td]
2​
[/td][td]Nate[/td][td]FTM01[/td][td]Yes[/td][/tr]


[tr][td]
3​
[/td][td]Nate[/td][td]FTM01[/td][td]No[/td][/tr]


[tr][td]
4​
[/td][td]Vito[/td][td]BD02[/td][td]Yes[/td][/tr]


[tr][td]
5​
[/td][td]Nate[/td][td]SM02[/td][td]Yes[/td][/tr]
[/table]


with headers added.

How do we get Nate >> 1 and Vito >> 1, using the above exhibit?
 
Upvote 0
Aladin thanks for generating the table above. Nate gets 1 because he has (1) "No" which is against sheet FTM01. If both rows 2 and 3 were "No" then Nate would still have (1) "No" since the sheets are the same (FTM01). As for Vito, he would get 0 since he has 0 "No". I was incorrect above by saying Vito gets 1. Sorry for the confusion.
 
Upvote 0
Aladin thanks for generating the table above. Nate gets 1 because he has (1) "No" which is against sheet FTM01. If both rows 2 and 3 were "No" then Nate would still have (1) "No" since the sheets are the same (FTM01). As for Vito, he would get 0 since he has 0 "No". I was incorrect above by saying Vito gets 1. Sorry for the confusion.

Ok.

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][/tr]
[tr][td]
1​
[/td][td]name[/td][td]sheet[/td][td]yes/no[/td][td][/td][td]Nate[/td][td]
1​
[/td][/tr]


[tr][td]
2​
[/td][td]Nate[/td][td]FTM01[/td][td]Yes[/td][td][/td][td]Vito[/td][td]
0​
[/td][/tr]


[tr][td]
3​
[/td][td]Nate[/td][td]FTM01[/td][td]No[/td][td][/td][td][/td][td][/td][/tr]


[tr][td]
4​
[/td][td]Vito[/td][td]BD02[/td][td]Yes[/td][td][/td][td][/td][td][/td][/tr]


[tr][td]
5​
[/td][td]Nate[/td][td]SM02[/td][td]Yes[/td][td][/td][td][/td][td][/td][/tr]
[/table]


In F1 control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($A$2:$A$5=E1,IF(1-($B$2:$B$5=""),IF($C$2:$C$5="No",
    MATCH($B$2:$B$5,$B$2:$B$5,0)))),ROW($B$2:$B$5)-ROW($B$2)+1),1))
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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