You wont believe this but theres another issue stopping it from working!
Ive tested the latest version and altered the volume from all sources to 636.4k and the capacity at the destinations to 641.4k. There is 5k capacity but the volume wont distribute because it isn't counting the capacity or distributing to dest 22, missing out on 74.4k. When the distribution code is run as in the example it crashes because of the lack of capacity and highlights the code in debug as
Ive tried out various column and table placements to try and fix it, and tried a dummy row. When creating a dummy row the code works with the new tighter capacities but placements are incorrect when cross referenced with the distance table. The objective is to deliver first to dest with capacity then move to next nearest and so on.
If you run the distribute button on the spreadsheet attached you'll notice that the first source should all be distributed to dest 8 at 15 miles away but instead it is sent to dest 7 at 33.
Whats going wrong with the code to make it send to the wrong dest?
Bookmarks