Calculating units to corresponding boxes

Early Bright

New Member
Joined
Jan 30, 2020
Messages
6
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Good afternoon!

I am currently looking for a way to automatically split orders in different size boxes. But I can't find a way to make this work, I hope someone can help me with this!

To explain further:

I have 5 differtent boxes:

Box A: 21-40 units
Box B: 16-20 units
Box C: 6-15 units
Box D: 3-5 units
Box E: 1-2 units

Customer A orders 177 units, which results in 4 boxes A, 1 box E and 1 box C.

How can I make it work so it gives me this result, basically skipping Box B and D?

If more information is required, I am happy to oblige. Hope someone can help me out with this!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi Early Bright,

I can see no reason you wouldn't use 4 box A and 1 box B, unless there's some kind of box/shipping costs you're not supplying?
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top