Let us say you have two inputs.
input one, a list of items that need to be distributed

input two, a list of people to distribute them too, but with a limit on how many they can take

Let's say you want to randomly sort input one, then distribute to the list of people, up to their limits. Any remainder after everyone has reached their limits goes to a final overflow list.
The distribution limit is where I run into issues. If the distribution was even, I could just use a tile tool or a multirow tool.


but I need to add in something so that when a person hits their distribution limit, it cuts them off.
I tried doing a second multi-row tool to divide out any element > than the distribution limit, but it doesn't work as wanted. Because what I really need is for the distribution to continue until everyone reaches their limit so that the overflow are the ones left at the end.
I'm sure there is a way to use an iterative macro to do this, but I don't know how. Hoping someone can help. I am attaching example files of some fake data in anyone cares to lend a hand.