Pairing non-teammate competitors

Woodwalker

New Member
Joined
Jul 19, 2023
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Need help please, I like to match-up competitors randomly where they can't face their own teammates and they can only face the opponent once. Data is taken from a table
that's arrange like this (Column A: Competitor, Column B: Team). In another table is the output (Column D: Competitor 1, Column E: Team, Column F: Competitor 2, Column G: Team), also there's no duplicates of any competitor's name in Columns D and F. Any help would appreciated. Thanks. Sorry for bad english.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
something like this?

Team Table (used for entry lookup)
GetLastRow.xlsm
J
90Teams
91
92Snow White
93Donald Duck Nephews
Sheet1


Competitor & Team Table
GetLastRow.xlsm
AB
91
92DocSnow White
93SleepySnow White
94GrumpySnow White
95HappySnow White
96DopeySnow White
97SneezySnow White
98BashfulSnow White
99HueyDD Nephews
100DewyDD Nephews
101LouieDD Nephews
102MannyPep Boys
103MoePep Boys
104JackPep Boys
Sheet1
Cells with Data Validation
CellAllowCriteria
B91:B98List=TeamList


Event and Competitor Table
GetLastRow.xlsm
DEFGH
90Competitor 1TeamCompetitor 2TeamStatus
91SleepySnow WhiteDewyDD NephewsOK
92HueyDD Nephews OK
93 HueyDD NephewsOK
94  OK
95  OK
96  OK
97  OK
98  OK
99  OK
100  OK
101
102
103
104
Sheet1
Cell Formulas
RangeFormula
E91:E100,G91:G100G91=IF(LEN(F91)>0,VLOOKUP(F91,Competitors,2,FALSE),"")
H91:H92H91=IF(E91=G91,"Team Mates",IF(D91=F91,"Duplicate Competitor","OK"))
H93:H100H93=IF(AND(E93=G93,LEN(G93)>0),"Team Mates",IF(AND(LEN(F93)>0,D93=F93),"Duplicate Competitor","OK"))
Named Ranges
NameRefers ToCells
CompetitorList=Sheet1!$A$92:$A$104E91:E100, G91:G100
Competitors=Sheet1!$A$91:$B$104E91:E100, G91:G100
TeamList=Sheet1!$D$91:$D$93H91, E91
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D91:D100,F91:F100Cell ValueduplicatestextNO
Cells with Data Validation
CellAllowCriteria
D91:D100List=CompetitorList
F91:F100List=CompetitorList
 
Upvote 0
When Team Mates are the same the Status changes:
MoePep BoysJackPep BoysTeam Mates
JackPep BoysHueyDD NephewsOK
MannyPep BoysHueyDD NephewsOK
HappySnow WhiteBashfulSnow WhiteTeam Mates


Please note: I removed the duplicate highlighting that was in the previous example.
 
Upvote 0
Thanks for your time and effort. Your second table, the competitor & team table is correct, because that's what I have in my sheet, but I still need a formula for the randomization of the column F (and possibly D column). I forgot to write that there are 80 competitors divided in 11 groups of 6 with an additional two groups with 7 members (11 x 6 = 66) + (2 x 7 = 14)= 80. I don't need a formula for columns E and G (Teams Output) because I will just use index match with that. Our objective is not to determine if the output table has duplicates or not but to have an output of randomly matched non-teammate competitors without duplicates within the columns D and F(Competitors' Output). I hope you understand my reply.
 
Upvote 0
Sorry you referred to groups and teams. I didn’t understand the were synonymous.
 
Upvote 0
Are these 80 individuals randomly assigned to a team by you? Or do these competitors come as a team?
 
Upvote 0
Sorry if you got confused with the teams and groups. I assigned each individuals to a team myself not in random. I'm actually trying to do a tournament with a format similar to Yugioh Battle City Preliminaries if you're familiar with this anime, it has a battle-royale format where they roam the whole city to seek opponents. Pretty exciting isn't it?
 
Upvote 0
Hi ... just an update. I have not forgotten about you. I have been working on code to be able to do a Union, Intersection, and Complement (A - B) operation of two sets of data.
Eg - your Name/Team table and the competitor pairing. Being able to do this operation repeatedly will be the key to arriving at solution for your Competitor pairing.
 
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,784
Members
449,124
Latest member
shreyash11

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