Calculate Total Number of Packages and Package Dimensions

caplinq

New Member
Joined
Aug 16, 2010
Messages
5
I have a program that calculates the shipping rate to customers. In order to do this, I need to give information to UPS to calculate a rate quote. Every one of our products has got a gross weight and "individual packaged dimensions" as if each product were already packed in its own box.

I am trying to come up with a solution/equation that will calculate how many boxes I will need as well as the dimensions of each of the boxes. I have been wracking my brain to come up with the cleanest, most logical solution.

It does not have to be 100% perfect (ie, there can be gaps in the boxes), but there are some restrictions:
a) The maximum box size of ANY package is 100 x 100 x 100cm
b) Should use the smallest possible box
c) The calculation (or program) must give the total number of boxes
d) The calculation must give dimensions of each of the packages (assuming they will not all be the same size)

I think that the logical solution will FIRST package all SAME TYPE products together and then fit these into the larger package, but I can be convinced otherwise.

Product SKUGross
Weight
Weight
Unit of Measure
WidthHeightLengthDimension
Unit Of Measure
Number of
products ordered
Total Gross
Weight (kg)
Number of
Packages
Package Dimensions
(L x W x H) in cm
Product A0.66kg6622cm127.92
Product B0.05kg10110cm140.7
Product C0.02kg10110cm300.6
Product D0.08kg10210cm120.96
Product E0.1kg10310cm20.2
Product F0.01kg10010cm40.04
Product G0.0225kg6106cm80.18
Product H0.055kg6106cm241.32
Product I1.69kg10.510.525cm23.38
Product J1.66kg131326cm34.98
Product K2.07kg151530cm24.14
Total Gross Weight24.42
Total Number of Packages
Dimensions Package 1
Dimensions Package 2
Dimensions Package 3
Dimensions Package 4
Dimensions Package 5
Dimensions Package 6
Dimensions Package 7
Dimensions Package 8
Dimensions Package 9
Dimensions Package 10
Dimensions Package 11
Dimensions Package 12
Dimensions Package 13

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


I would post my excel sheet if I could figure out how!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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