What I'm trying to do is make sure that 100-152 are used as much as possible. Currently if I run my code I get a result like this. No number can be repeated in a single column.
100 100 100 100
101 101 101 101 101 101
102 102 102 102 102 102
103 103 103 103 103 103 103 103
104 104 104 104 104 104 104 104
See how 100 is only placed 4 times. The end result is that the lower valued numbers are used much less than the higher ones. I need to try and balance them. If my code was working it would look like the image I pasted.
I'm looking for the result like in I8 it should check to see that 100 is available to use again
100 100 100 100
101 101 101 101 101 101
102 102 102 102 102 102
103 103 103 103 103 103 103 103
104 104 104 104 104 104 104 104
See how 100 is only placed 4 times. The end result is that the lower valued numbers are used much less than the higher ones. I need to try and balance them. If my code was working it would look like the image I pasted.
I'm looking for the result like in I8 it should check to see that 100 is available to use again
PostStations.xls | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | < | |||||||||||
2 | 101 | 101 | 101 | 101 | 101 | 101 | 101 | 101 | ||||||||||||
3 | 102 | 102 | 102 | 102 | 102 | 102 | 102 | 102 | ||||||||||||
4 | 103 | 103 | 103 | 103 | 103 | 103 | 103 | 103 | ||||||||||||
5 | 104 | 104 | 104 | 104 | 104 | 104 | 104 | 104 | ||||||||||||
6 | 105 | 105 | 105 | 105 | 105 | 105 | 105 | 105 | ||||||||||||
7 | 106 | 106 | 106 | 106 | 106 | 106 | 106 | 106 | < | |||||||||||
8 | > | 100 | 100 | 100 | 100 | 100 | 100 | 100 | 100 | |||||||||||
9 | 101 | 101 | 101 | 101 | 101 | 101 | 101 | 101 | ||||||||||||
10 | 102 | 102 | 102 | 102 | 102 | 102 | 102 | 102 | ||||||||||||
11 | 103 | 103 | 103 | 103 | 103 | 103 | 103 | 103 | ||||||||||||
12 | > | 107 | 107 | 107 | 107 | 107 | 107 | 107 | 107 | |||||||||||
13 | 108 | 108 | 108 | 108 | 108 | 108 | 108 | 108 | ||||||||||||
Sheet1 |