Hope I can explain this well enough:
I have a starting amount, say 17,300. I want to divide it as evenly as possible among a number of slots. Thing is the number of slots may be anywhere from 1-6 independent slots and there is no way to tell ahead of time how many I can use (as other things may have them in use and thus be unavailable).
Here’s the trick though. The slots have to be filled in amounts of 100 units (no way around that). Rounding to nearest 100 has already occurred to get the 17,300 figure and I do not have stock to just add more for an even multiple of 1-6 (as the case may be).
It is ok if most are even and the last few are 100 or 200 short of the first ones as long as at the end they all total to 17,300. Just want them to be as near as possible so they finish roughly together.
This one has been giving me fits. Hoping solution is one of those easy ones I am just overlooking.
Any ideas?