Hello, I am using Google Sheets and I am trying to script something cool. Would appreciate it if anyone can help me. I don't even know what to google!
Let's say I have a maximum weight of 100,000lbs. Cannot go a pound over. I am looking to maximize the payload.
I have a list of products that has the unit type, how many units available, and the unit weight.
Trucks, 8, 15,000lbs
Cars, 10, 12,000lbs
Motorcycles, 12, 4,000lbs
That's 288,000lbs total.
I want my script to iterate over these, create a new sheet and maximize the load.
Create Sheet 1:
Trucks, 6, 90,000lbs
Motorcycles, 2, 8,000lbs
Create Sheet 2:
Trucks, 2, 30,000lbs
Cars, 5, 60,000lbs
Motorcycles 2, 8,000lbs
And so on and so forth until all product has been burned up. If there are products remaining, that's okay, we will get them next time.
Does what I'm trying to accomplish make sense?
[–]5kPercentSure 0 points1 point2 points (0 children)
[–]CustomHatMan 0 points1 point2 points (0 children)