How to create a tournament generator in Excel

dekion

New Member
Joined
Sep 8, 2017
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi

I have following brain teaser, which I don't see how to start with.

I have 3 groups, every group exist our of 4 teams and I'm looking for a generator that creates 3 fixtures / Team that need to play vs. the other groups.

In example Team 1 from group 1 needs to play 3 games vs. 3 teams picked out of group 2 of 3

Group 1Group 2Group 3
Team 1Team 1Team 1
Team 2Team 2Team 2
Team 3Team 3Team 3
Team 4Team 4Team 4
Would you have an idea how I can start with this, I'm really not seeing it.

I would really want to avoid VBA & work with standard Excel formulas.

Thank you for pushing me in the (right) direction
Regards
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You can try this. Cols E-G gives you all the possible combinations. If you don't want to see it, it can be incorporated all into 1 single formula. Col I-K generates 3 random combinations. Change cell J1 for the team you want to generate for.
Book2
ABCDEFGHIJK
1Group 1Group 2Group 3Team 1Team 2Team 3Generate 3 random games forTeam A
2Team ATeam BTeam CTeam ATeam BTeam CTeam ATeam NTeam O
3Team ETeam FTeam GTeam ATeam BTeam GTeam ATeam JTeam C
4Team ITeam JTeam KTeam ATeam BTeam KTeam ATeam BTeam O
5Team MTeam NTeam OTeam ATeam BTeam O
6Team ATeam FTeam C
7Team ATeam FTeam G
8Team ATeam FTeam K
9Team ATeam FTeam O
10Team ATeam JTeam C
11Team ATeam JTeam G
12Team ATeam JTeam K
13Team ATeam JTeam O
14Team ATeam NTeam C
15Team ATeam NTeam G
16Team ATeam NTeam K
17Team ATeam NTeam O
18Team ETeam BTeam C
19Team ETeam BTeam G
20Team ETeam BTeam K
21Team ETeam BTeam O
22Team ETeam FTeam C
23Team ETeam FTeam G
24Team ETeam FTeam K
25Team ETeam FTeam O
26Team ETeam JTeam C
27Team ETeam JTeam G
28Team ETeam JTeam K
29Team ETeam JTeam O
30Team ETeam NTeam C
31Team ETeam NTeam G
32Team ETeam NTeam K
33Team ETeam NTeam O
34Team ITeam BTeam C
35Team ITeam BTeam G
36Team ITeam BTeam K
37Team ITeam BTeam O
38Team ITeam FTeam C
39Team ITeam FTeam G
40Team ITeam FTeam K
41Team ITeam FTeam O
42Team ITeam JTeam C
43Team ITeam JTeam G
44Team ITeam JTeam K
45Team ITeam JTeam O
46Team ITeam NTeam C
47Team ITeam NTeam G
48Team ITeam NTeam K
49Team ITeam NTeam O
50Team MTeam BTeam C
51Team MTeam BTeam G
52Team MTeam BTeam K
53Team MTeam BTeam O
54Team MTeam FTeam C
55Team MTeam FTeam G
56Team MTeam FTeam K
57Team MTeam FTeam O
58Team MTeam JTeam C
59Team MTeam JTeam G
60Team MTeam JTeam K
61Team MTeam JTeam O
62Team MTeam NTeam C
63Team MTeam NTeam G
64Team MTeam NTeam K
65Team MTeam NTeam O
Sheet2
Cell Formulas
RangeFormula
E2:G65E2=TEXTSPLIT(TEXTJOIN(",",,TOCOL(A2:A5 &"|"& TOROW(B2:B5)) &"|"&TOROW(C2:C5)),"|",",")
I2:K4I2=TAKE(SORTBY(FILTER(E2#,E2:E65=J1),RANDARRAY(16)),3)
Dynamic array formulas.
 
Upvote 1
Solution
A second (more flexible) option.
Book2
ABCDEFGH
1Group 1Group 2Group 3All CombinationsGenerate 3 random games for:Team A
2Team ATeam BTeam CTeam A|Team B|Team CTeam A|Team F|Team K
3Team ETeam FTeam GTeam A|Team B|Team GTeam A|Team B|Team C
4Team ITeam JTeam KTeam A|Team B|Team KTeam A|Team N|Team O
5Team MTeam NTeam OTeam A|Team B|Team O
6Team A|Team F|Team C
7Team A|Team F|Team G
8Team A|Team F|Team K
9Team A|Team F|Team O
10Team A|Team J|Team C
11Team A|Team J|Team G
12Team A|Team J|Team K
13Team A|Team J|Team O
14Team A|Team N|Team C
15Team A|Team N|Team G
16Team A|Team N|Team K
17Team A|Team N|Team O
18Team E|Team B|Team C
19Team E|Team B|Team G
20Team E|Team B|Team K
21Team E|Team B|Team O
22Team E|Team F|Team C
23Team E|Team F|Team G
24Team E|Team F|Team K
25Team E|Team F|Team O
26Team E|Team J|Team C
27Team E|Team J|Team G
28Team E|Team J|Team K
29Team E|Team J|Team O
30Team E|Team N|Team C
31Team E|Team N|Team G
32Team E|Team N|Team K
33Team E|Team N|Team O
34Team I|Team B|Team C
35Team I|Team B|Team G
36Team I|Team B|Team K
37Team I|Team B|Team O
38Team I|Team F|Team C
39Team I|Team F|Team G
40Team I|Team F|Team K
41Team I|Team F|Team O
42Team I|Team J|Team C
43Team I|Team J|Team G
44Team I|Team J|Team K
45Team I|Team J|Team O
46Team I|Team N|Team C
47Team I|Team N|Team G
48Team I|Team N|Team K
49Team I|Team N|Team O
50Team M|Team B|Team C
51Team M|Team B|Team G
52Team M|Team B|Team K
53Team M|Team B|Team O
54Team M|Team F|Team C
55Team M|Team F|Team G
56Team M|Team F|Team K
57Team M|Team F|Team O
58Team M|Team J|Team C
59Team M|Team J|Team G
60Team M|Team J|Team K
61Team M|Team J|Team O
62Team M|Team N|Team C
63Team M|Team N|Team G
64Team M|Team N|Team K
65Team M|Team N|Team O
Sheet2
Cell Formulas
RangeFormula
E2:E65E2=TOCOL(TOCOL(A2:A5&"|"&TOROW(B2:B5))&"|"&TOROW(C2:C5))
G2:G4G2=TAKE(SORTBY(FILTER(E2#,ISNUMBER(SEARCH(H1,E2#))),RANDARRAY(16)),3)
Dynamic array formulas.
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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