Calculating units to corresponding boxes

Early Bright

New Member
Joined
Jan 30, 2020
Messages
3
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!
 

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Toadstool

Well-known Member
Joined
Mar 5, 2018
Messages
1,295
Office Version
  1. 2016
Platform
  1. Windows
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,850
Messages
5,598,455
Members
414,239
Latest member
xnanx

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
Top