Here's just a general outline. There is tonnes of coding done in prior worksheets that will generate the entire schedule, but I've just plugged in a team-name four times and only 12 timeslots to give a general idea (I've got this coding fine, probably not the most efficient, but I understand it, lol). The actual schedule has 1200 available timeslots for 15 games each for 120 teams (so much more massive, making the simply sorts, much more time consuming, and confusing, I'm trying to make the program very user-friendly for people with limited computer skills).
.............DATE..............GAME TIME...RINK.....HOME.....AWAY.....REFS
Monday..September 4......5:30-6:30....1........
Monday..September 4......6:30-7:30....1........Stars
Monday..September 4......7:30-8:30....1......................Stars
Monday..September 4......8:30-9:30....1........
Monday..September 4....9:30-10:30....1........
Monday..September 4...10:30-11:30....1........
Monday..September 4......5:30-6:30....2........
Monday..September 4......6:30-7:30....2........
Monday..September 4......7:30-8:30....2........
Monday..September 4......8:30-9:30....2........Stars
Monday..September 4....9:30-10:30....2......................Stars
Monday..September 4...10:30-11:30....2........
(Note, for above, for some reason, the spaces that I have typed do not show up, so I've had to put in the dots)
Because the final schedule will be absolutely massive, what I want is to have a worksheet where all the person using the program has to do is type the team name and the schedule comes up.
So, what I've done, I've got a place at the top of the page to put the team name. On the schedule page, I've added hidden columns (width=0) to the right of the completed schedule so I could use vlookup commands.
So, each line has a bunch of "VLOOKUP" commands, one to pull the day of the week, one to pull the date, one to pull the game time, one to pull the rink #, one to pull the home team and one to pull the away team. The only problem is, the VLOOKUP will only pull the team name the first time. So, QUESTION #1, how do I write a command to pull the second one, and the third one, and the fourth one, etc?
As well, I've had to use two different VLOOKUP commands to pull from each of the HOME and the AWAY columns. So, QUESTION #2, is there a command to search for the data in multiple columns, as opposed to just the first column?
I appreciate any help I can get on this matter. Question #1 is the more urgent, I can live without an answer to Question #2.