Tommy2Tables
New Member
- Joined
- Sep 16, 2012
- Messages
- 11
I want to find what person is most likely to have infected my salesman.
I have two tables, one of sick salesmen and their customers and the well salesmen and their customers.
The customers overlap.
I want to find the most common customers that might have made them sick by subtracting out the customers that the sick and well both saw.
I can find out which are the most common customers between the salesmen with an Advanced Filter and COUNTIF, like this procedure 1) Select the entire column B
2) Open the Data...Filter...Advanced Filter menu item
3) Check the boxes for "Unique records only" and "Filter the list, in place"
4) Click OK. Excel will now collapse the list into just the unique records. All other rows are hidden.
5) Enter this formula in cell C2: =COUNTIF($B$2:$F$50,B2)
6) Copy this formula down to the end of your list
then descending sort This procedure is described here:
Counting frequency and ranking
But I also want it to remove the customers in common with the well salesmen who did not get them sick.
[TABLE="width: 232"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]SICK SALESMEN[/TD]
[TD]CUSTOMERS[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]James Wheat[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Joey Flory[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ross Beckemeyer[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Brian Matias[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Twila Leimbach[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Andy Kysar[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Michael Amato[/TD]
[/TR]
[TR]
[TD]Eric McKinnis
[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Concetta Tasso[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Stuart Phaup[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Willard Bolan[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]John Gottard[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WELL SALESMEN
[/TD]
[TD]CUSTOMERS[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Lillie Carpenter[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Cora Mcnamara[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Vivian Bogart[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Victoria Madison
[/TD]
[/TR]
</tbody>[/TABLE]
In this example, everyone well and sick, visits Ines Lobaugh, so even though she is very common, she should be subtracted from the results.
Thank you.
Tommy2Tables
I have two tables, one of sick salesmen and their customers and the well salesmen and their customers.
The customers overlap.
I want to find the most common customers that might have made them sick by subtracting out the customers that the sick and well both saw.
I can find out which are the most common customers between the salesmen with an Advanced Filter and COUNTIF, like this procedure 1) Select the entire column B
2) Open the Data...Filter...Advanced Filter menu item
3) Check the boxes for "Unique records only" and "Filter the list, in place"
4) Click OK. Excel will now collapse the list into just the unique records. All other rows are hidden.
5) Enter this formula in cell C2: =COUNTIF($B$2:$F$50,B2)
6) Copy this formula down to the end of your list
then descending sort This procedure is described here:
Counting frequency and ranking
But I also want it to remove the customers in common with the well salesmen who did not get them sick.
[TABLE="width: 232"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]SICK SALESMEN[/TD]
[TD]CUSTOMERS[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]James Wheat[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Joey Flory[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ross Beckemeyer[/TD]
[/TR]
[TR]
[TD]Roger Oneil[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Brian Matias[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Twila Leimbach[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Andy Kysar[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Pedro Conway[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Michael Amato[/TD]
[/TR]
[TR]
[TD]Eric McKinnis
[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Eric McKinnis[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Gwen Andrew[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Concetta Tasso[/TD]
[/TR]
[TR]
[TD]Lawrence Curran[/TD]
[TD]Belinda Roby[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Ramona Borges[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Stuart Phaup[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]Willard Bolan[/TD]
[/TR]
[TR]
[TD]Howard Acker[/TD]
[TD]John Gottard[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WELL SALESMEN
[/TD]
[TD]CUSTOMERS[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Bridgett Althaus[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Lillie Carpenter[/TD]
[/TR]
[TR]
[TD]Mara Maltz[/TD]
[TD]Cora Mcnamara[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Ines Lobaugh[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Vivian Bogart[/TD]
[/TR]
[TR]
[TD]Jimmy Lowder[/TD]
[TD]Victoria Madison
[/TD]
[/TR]
</tbody>[/TABLE]
In this example, everyone well and sick, visits Ines Lobaugh, so even though she is very common, she should be subtracted from the results.
Thank you.
Tommy2Tables