bluetaurean
Member
Can someone help me with code to breakdown qtys into number of runs. example product A having a total qty of 75K needs to be broken down in 3 runs of 25K each but the output list must do a sequence of each product once before looping to back to the first product.
Input
Product Qty Run Size No of Runs
A 75,000 25,000 3.0
B 75,000 30,000 2.5
C 45,000 30,000 1.5
Output needed
Product
Runs
A 25,000
B 30,000
C 30,000
A 25,000
B 30,000
C 15,000
A 25,000
B 15,000
C -
Input
Product Qty Run Size No of Runs
A 75,000 25,000 3.0
B 75,000 30,000 2.5
C 45,000 30,000 1.5
Output needed
Product
Runs
A 25,000
B 30,000
C 30,000
A 25,000
B 30,000
C 15,000
A 25,000
B 15,000
C -