This is a very complicated scenario, and i hope someone can help me. I want to write a vba code based on the following scenario.
A cabinet can have a maximum or 11 shelves.
Max number of net cards i can have on the shelf is 3
Max number of trunks i can place on the net card is 2 trunks in each card (6 trunks on a shelf)
Technically, if i have a total of 6 trunks, then i would need only one shelf. But it in my scenario it doesn't work like this.
The trunks should be distributed in such a way that if one shelf goes down, i would still be able to operate with the trunks located on the second shelf. Therefore the setup should be:
Shelf 1 should have 3 trunks
Shelf 2 should have 3 trunks as well.
example 2: If i have 2 trunks, then
Shelf 1 should have 1 trunk
Shelf 2 should have 1 trunk as well.
At the end of the function, i should be able to get the total number of shelves being used. Do i need to use arrays for this type of situation.
Any hints or suggestions would be highly appreciated. Thanks!
A cabinet can have a maximum or 11 shelves.
Max number of net cards i can have on the shelf is 3
Max number of trunks i can place on the net card is 2 trunks in each card (6 trunks on a shelf)
Technically, if i have a total of 6 trunks, then i would need only one shelf. But it in my scenario it doesn't work like this.
The trunks should be distributed in such a way that if one shelf goes down, i would still be able to operate with the trunks located on the second shelf. Therefore the setup should be:
Shelf 1 should have 3 trunks
Shelf 2 should have 3 trunks as well.
example 2: If i have 2 trunks, then
Shelf 1 should have 1 trunk
Shelf 2 should have 1 trunk as well.
At the end of the function, i should be able to get the total number of shelves being used. Do i need to use arrays for this type of situation.
Any hints or suggestions would be highly appreciated. Thanks!
Comment