Sports scheduling helper

JayTee

New Member
Joined
Aug 11, 2018
Messages
1
I have a simple scheduling table to determine 16-game schedules in a league of 32 teams:

https://i.imgur.com/ShtN22o.png

The teams are numbered 1-32. The games in the red triangle are all the unique games (everything repeats on the other half). A team's schedule can be read across or down. For example, Team 9 plays 1, 5, 10, 10, 11, 11, 12, 12, 13, 14, 15, 16, 17, 21, 25, 29 (they play 10, 11 and 12 twice as indicated in those cells).

There are 256 games total for the season. What I would like to do is write a macro that uses this table to print (to a separate table) all 256 games as rows, like this:

https://i.imgur.com/hO4DFMn.png

Ideally, the games would be set so that each team plays 8 home games and 8 away games, though I realize this adds complexity and likely would take extra tables/steps.

Any help on getting started would be appreciated.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Cross posted http://www.vbaexpress.com/forum/showthread.php?63408-Sports-scheduling-helper

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,712
Messages
6,174,031
Members
452,542
Latest member
Bricklin

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