Brutality
New Member
- Joined
- Feb 5, 2003
- Messages
- 44
Hello again,
I had some good help yesterday assigning Parking IDs for car's in a rally based on run routes (short, medium, and long). See here for the thread:
http://www.mrexcel.com/forum/showthread.php?p=2661964&posted=1#post2661964
I've also made plenty of progress in other required areas and have my macros for separating and extracting the different run routes for mailing envelope labels, but have hit a snag with assigning start times because they have to be staggered but alternating based on the following *rules*:
- The first car starts at 9:15am
- Cars proceed thereafter at 30 second intervals
- Order of departure is based on run route (be aware there are FAR more entries in the medium route) and the logic is:
-- medium, short, medium, short until all the short runs have departed
-- then it continues medium, long, medium, long until all the long runs have departed
-- then all remaining mediums.
Obviously there are far more entries in the medium run than any other, hence the above staggering process and I have a count of how many are in each run based on the above Park IDs if that helps.
Short Run: 223 (IDs 1000-1222)
Medium Run: 1780 (IDs 2000-3779)
Long Run: 355 (4000-4354)
So for example,
Park ID, Start Time
2000, 9:15:00 <--medium
1000, 9:15:30 <--short
2001, 9:16:00 <--medium
1001, 9:16:30 <--short
[...]
2223, 10:05:00 <--medium (guessing the time for demo purposes)
4001, 10:05:30 <--long
2223, 10:06:00 <--medium
4001, 10:06:30 <--long
[...]
4224, 11:15:00 <--remaining mediums
4225, 11:15:30
4226, 11:16:00
I'm really not even sure where to begin on this but am hoping it's possible so I don't have to do it manually. Any ideas?
All help appreciated.
TIA
Mark
I had some good help yesterday assigning Parking IDs for car's in a rally based on run routes (short, medium, and long). See here for the thread:
http://www.mrexcel.com/forum/showthread.php?p=2661964&posted=1#post2661964
I've also made plenty of progress in other required areas and have my macros for separating and extracting the different run routes for mailing envelope labels, but have hit a snag with assigning start times because they have to be staggered but alternating based on the following *rules*:
- The first car starts at 9:15am
- Cars proceed thereafter at 30 second intervals
- Order of departure is based on run route (be aware there are FAR more entries in the medium route) and the logic is:
-- medium, short, medium, short until all the short runs have departed
-- then it continues medium, long, medium, long until all the long runs have departed
-- then all remaining mediums.
Obviously there are far more entries in the medium run than any other, hence the above staggering process and I have a count of how many are in each run based on the above Park IDs if that helps.
Short Run: 223 (IDs 1000-1222)
Medium Run: 1780 (IDs 2000-3779)
Long Run: 355 (4000-4354)
So for example,
Park ID, Start Time
2000, 9:15:00 <--medium
1000, 9:15:30 <--short
2001, 9:16:00 <--medium
1001, 9:16:30 <--short
[...]
2223, 10:05:00 <--medium (guessing the time for demo purposes)
4001, 10:05:30 <--long
2223, 10:06:00 <--medium
4001, 10:06:30 <--long
[...]
4224, 11:15:00 <--remaining mediums
4225, 11:15:30
4226, 11:16:00
I'm really not even sure where to begin on this but am hoping it's possible so I don't have to do it manually. Any ideas?
All help appreciated.
TIA
Mark