Hi All,
I have bit of a complex solution I'm trying to work on, at least for me. I've attached an excel sheet with the proof of concept. Any help would be greatly appreciated!
The scenario is as such:
I have tried to do the most I can, but I'm not as advanced to complete this logic.
Any help or pointing in the right direction would be greatly appreciated!
Solved! Go to Solution.
Try the attached.
It starts by selecting the percentage allocation for the available sizes
It then computes the nearest integer below for each size based on total allocated percentage and availabile qty.
You then know you will be within 1 of the ideal allocation for each size, so calculates the residual (r) and then adds 1 to the first r rows ordered by size of the fractional allocation.
This will mean that qty will be right and allocation will be fairly close to target percentage.
You sir are a gentleman and a scholar.
I thought this was gonna take me forever to figure out, managed to implement it in one day. Thank you so much!!
Thanks @jdunkerley79. A few years down the road from this posting and your solution helped me out this morning. Much appreciated.
User | Count |
---|---|
19 | |
15 | |
13 | |
9 | |
8 |