excelhjalp
New Member
- Joined
- Aug 7, 2018
- Messages
- 33
- Office Version
- 365
- Platform
- Windows
Good day!
I have a problem I can't solve in VBA. I have two tables, the first one with three columns: The name of players (distinct), date when they are available from and date when they are available to.
In the second table I have four columns. One date column, one column that contains slots that players need to be assigned to, thrid column stating if the slot is available on a given day and the forth column is the one that needs to be filled out.
The problem is that I need to fill out the slots each day with the players available, no player can be in two or more slots. So the VBA code should check which players are available based on given dates and fill out the slots available. In case there aren't enough slots available for all the players, I would need to know which players were left out. In the cases where the slots are more than the players, it should simply be empty, like in the file attached.
I hope this is clear. Please let me know if anything is unclear
Thank you so much for your help!
Regards,
Sveppi
I have a problem I can't solve in VBA. I have two tables, the first one with three columns: The name of players (distinct), date when they are available from and date when they are available to.
In the second table I have four columns. One date column, one column that contains slots that players need to be assigned to, thrid column stating if the slot is available on a given day and the forth column is the one that needs to be filled out.
The problem is that I need to fill out the slots each day with the players available, no player can be in two or more slots. So the VBA code should check which players are available based on given dates and fill out the slots available. In case there aren't enough slots available for all the players, I would need to know which players were left out. In the cases where the slots are more than the players, it should simply be empty, like in the file attached.
I hope this is clear. Please let me know if anything is unclear
Thank you so much for your help!
Regards,
Sveppi