Creating a Fixture List

oakwood_001

Board Regular
Joined
Apr 4, 2008
Messages
108
Column A
Column B
Column C
Player 1
vs.
Player 2
Player 1
vs.
Player 3
Player 1
vs.
Player 4
Player 1
vs.
Player 5
Player 2
vs.
Player 3
etc.

<tbody>
</tbody>


Hi All,

I want to create a fixture table from a list of players (eachplayer in a separate cell in one column) where each player will be matched (in two separatecolumns) against a unique player. It hasto recognise a match both ways no matter which player comes first – i.e. Player1 vs. Player 2 is the same as Player 2 vs. Player 1 – and so that match willonly appear once.


I don’t want to use VBA or a Macro to do this but I can’twork out how to using formulas. I want to accommodate up to 10 unique players, but only want the formula to apply if a cell is not empty (i.e. <>"").


e.g.

My list of players:
Player 1
Player 2
Player 3
Player 4
Player 5

Turns into a table similar to the above (sorry couldn’tmove the table downwards).

Any help would be greatly appreciated.

Thanks.

 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I'm working on a bit more elegant set of formulas, but for now, try:

ABCDE
1Column AColumn BColumn CPlayers
2AndyvsBethAndy
3AndyvsChuckBeth
4AndyvsDonnaChuck
5AndyvsEricDonna
6BethvsChuckEric
7BethvsDonna
8BethvsEric
9ChuckvsDonna
10ChuckvsEric
11DonnavsEric

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet6

Worksheet Formulas
CellFormula
A3=IF(A2="","",IF(COUNTIF($A$2:$A2,A2)<COUNTA($E$2:$E$11)-MATCH(A2,$E$2:$E$11,0),A2,IF(MATCH(A2,$E$2:$E$11,0)=COUNTA($E$2:$E$11)-1,"",INDEX($E$3:$E$12,MATCH(A2,$E$2:$E$11,0)))))
A2=E2
B2=IF(A2="","","vs")
C2=E3
C3=IF(A3="","",INDEX($E$2:$E$11,COUNTIF($A$2:$A3,A3)+MATCH(A3,$E$2:$E$11,0)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
If you're willing to use a helper column (which you can hide), then the A formula can be simplified to:

ABCDEF
1Column AColumn BColumn CPlayers
2AndyvsBethAndy0
3AndyvsChuckBeth5
4AndyvsDonnaChuck9
5AndyvsEricDonna12
6AndyvsFeliceEric14
7BethvsChuckFelice15
8BethvsDonna15
9BethvsEric15
10BethvsFelice15
11ChuckvsDonna15
12ChuckvsEric15
13ChuckvsFelice15
14DonnavsEric15
15DonnavsFelice15
16EricvsFelice15
1715

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet6

Worksheet Formulas
CellFormula
A2=INDEX($E$2:$E$11,MATCH(ROWS($A$2:$A2)-1,$F$2:$F$11))&""
B2=IF(A2="","","vs")
C2=E3
C3=IF(A3="","",INDEX($E$2:$E$11,COUNTIF($A$2:$A3,A3)+MATCH(A3,$E$2:$E$11,0)))
F3=F2+COUNTA(E3:E$11)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Still thinking about the C formula.
 
Upvote 0
In hindsight C2 can be:

=IF(A2="","",INDEX($E$2:$E$11,COUNTIF($A$2:$A2,A2)+MATCH(A2,$E$2:$E$11,0)))

and copy down. No need for the special =E3 formula in C2.
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,005
Members
449,480
Latest member
yesitisasport

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