Pallet calculations

Sherianne20201

New Member
Joined
Mar 22, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am trying to calculate pallet specs based on different sized boxes. I am using standard sized pallets 48 x 40 - maximum height around 72 (I am using inches)

For instance, if I have the following items, how many can fit on a pallet using a 48 x 40 x around 72 inch pallet?

dims.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
In simple terms - all of them:
Book1
ABCDEFGHI
1Master Pack QTYSLengthWidthHeightWeightVolumePallet Width48
2213.413.21315.14598.88Pallet Length40
3612.89.911.111.18439.552Pallet Height72
4612.89.911.111.18439.552Pallet Cube138240
5612.89.911.111.18439.552
6622.919.110.138.926505.83
7625.412.210.119.318778.73
8621.99.211.113.813418.57
96241210.91718835.2
10617.59.311.210.110936.8
111222.35.910.1515946.28
12134339
Sheet2
Cell Formulas
RangeFormula
F2:F11F2=(B2:B11*C2:C11*D2:D11)*A2:A11
I4I4=I1*I2*I3
F12F12=SUM(F2:F11)
Dynamic array formulas.
 
Upvote 0
Hello Sherianne,
There are many ways to stack a pallet; carton length to pallet length, carton length to pallet width, carton width laid flat, carton height laid flat, carton laid standing up, pallet layers alternated for stability, pallet weight limits, layers separated by paper or cardboard or wood, various brick pattern layers, etc, etc

This code will give you layer quantity by carton laid length to pallet length and length to pallet width with width laid flat. If your pallet patterns are always the same you could use a simple excel formula on the sheet instead of using vba code for different layer patterns.

VBA Code:
Sub CalculateLaodQty()
'Calculate maximume arton load on pallet
'only a few of these potential variables are used
    Dim PalletWidth As Double
    Dim PalletLength As Double
    Dim PalletHeight As Double  'Maximum allowed
    Dim PalletWeight As Double  'Maximum allowed

    Dim CartonWidth As Double
    Dim CartonLength As Double
    Dim CartonHeight As Double
    Dim CartonWeight As Double

    Dim WidthQty As Double
    Dim LengthQty As Double

    'LayerBrick Patterons
    Dim LengthToLengthLayerQty As Integer
    Dim LengthToWidthLayerQty As Integer
    Dim AlternateDirection As Boolean

    Dim Basketweave As Double
    Dim HalfBasketweave As Double
    Dim Herringbone As Double
    Dim JackOnJack As Double

    Dim Length_RowWidthQty As Double
    Dim Length_RowLengthQty As Double
    Dim Width_RowWidthQty As Double
    Dim Width_RowLengthQty As Double

    'gather data
    PalletWidth = Range("C2")
    PalletLength = Range("C3")
    PalletHeight = Range("C4")
    PalletWeight = Range("C5")

    CartonWidth = Range("C7")
    CartonLength = Range("C8")
    CartonHeight = Range("C9")
    CartonWeight = Range("C10")


    'Determine quantity for one row Length
    Length_RowWidthQty = Application.WorksheetFunction.RoundDown(PalletWidth / CartonLength, 0)
    Length_RowLengthQty = Application.WorksheetFunction.RoundDown(PalletLength / CartonLength, 0)

    'Determine quantity for one row Width
    Width_RowWidthQty = Application.WorksheetFunction.RoundDown(PalletWidth / CartonWidth, 0)
    Width_RowLengthQty = Application.WorksheetFunction.RoundDown(PalletLength / CartonWidth, 0)

    'Calculate layer quantity laid Length to Length
    LengthToLengthLayerQty = Length_RowLengthQty * Width_RowWidthQty

    'Calculate layer quantity laid Length to Width
    LengthToWidthLayerQty = Length_RowWidthQty * Width_RowLengthQty


    MsgBox "Layer Laid Length to Length QTY " & LengthToLengthLayerQty & vbLf & _
           "Layer Laid Length to Width Qty " & LengthToWidthLayerQty
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,029
Members
452,542
Latest member
Bricklin

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