Can’t get this to work.
I would like to make consequential sublists of the main list based on the closest summation of the numbers compared to another list of intended sums. I hope this makes sense,
I have a main list with 200 numbers.
Then another list of sums (60 and 100).
I intend to take items adding them up one by one from the main list till the sum is just above 60, then create a new list of those numbers.
Then with the remaining list, take more items till the sum is just above 100, and create a new list of those.
Finally, return a list with two sublists of the numbers that add up to the coresponding sums.
_test for loop.dyn (5.5 KB)