Optimise pallet packing

CarlW1179

New Member
Joined
Jan 4, 2024
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Hi

I've been tasked with finding a way to optimizing some distribution.

in a nut shell we can fit 4 pallets onto a van 2 hold 32 Cases and 2 hold 40 cases and i need to find a way to work out how much of each product will go on each pallet.

Pallet 1 Holds = 32
Pallet 2 Holds = 32
Pallet 3 Holds = 40
Pallet 4 Holds = 40

Product 1 12 = Pallet 1
product 2 14 = Pallet 1
Product 3 36 = x6 Pallet 1 & X30 Pallet 2
Product 4 29 = x2 Pallet 2 & X27 Pallet 3
Product 5 38 = X13 Pallet 3 & X25 Pallet 4

Sorry if this looks like a GCSE question.

Cheers
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Need a formula to work out optimum pallet fills
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
How about something like this?:

Pallets.xlsx
ABC
1Pace in Van
2144
3PalletCases per pallet
413212x Product 1 | 14x Product 2 | 6x Product 3
523230x Product 3 | 2x Product 4
634027x Product 4 | 13x Product 5
744025x Product 5
8
9Shipment
10129
11Product Cases
12112
13214
14336
15429
16538
Hoja1
Cell Formulas
RangeFormula
B2B2=SUM(B4:B7)
C4:C7C4=LET( CasesPallets,TRANSPOSE(VALUE(TEXTSPLIT(CONCAT(MAP($A$4:$A$7,$B$4:$B$7,LAMBDA(p,c,REPT(p&";",c)))),";",,1))), nCasesByPallets,COUNT(CasesPallets), Product,FILTER($A$12:$A$32,$A$12:$A$32<>""), Cases,FILTER($B$12:$B$32,$A$12:$A$32<>""), tCasesProducts,TRANSPOSE(VALUE(TEXTSPLIT(CONCAT(MAP(Product,Cases,LAMBDA(p,c,REPT(p&";",c)))),";",,1))), nCasesByProduct,COUNT(tCasesProducts), CasesProducts,EXPAND(tCasesProducts,nCasesByPallets,,""), tProductPerPallet,FILTER(CasesProducts,CasesPallets=A4), uProductPerPallet,UNIQUE(FILTER(tProductPerPallet,tProductPerPallet<>"")), IF(nCasesByPallets<nCasesByProduct,"More cases (" &nCasesByProduct&") than places on pallets ("&nCasesByPallets&")", TEXTJOIN(" | ",,(BYROW(uProductPerPallet,LAMBDA(x,COUNTA(FILTER(tProductPerPallet,tProductPerPallet=x))&"x Product "&x)))) ) )
B10B10=SUM(B12:B32)
 
Upvote 0

felixstraube

Thats awsome thank you for taking the time to have a look. I have just tried it and its coming up with the formula problem text box saying there is an issue

MAP($A$4:$A$7,$B$4:$B$7,LAMBDA(p,c,REPT(p&";",c))) in this part of the formula.
 
Upvote 0
c are the numbers in column B. They have to be numbers.

here is the working book:

Pallets.zip

If you still have problem, try uploading your workbook to a cloud storage and i'll have a look.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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