+ Reply to Thread
Results 1 to 9 of 9

Carton box calculation for dress

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Carton box calculation for dress

    Hi good evening...

    We have mutiple styles / sizes of garment (dress) to calculate number of carton boxes to pack. Also we have multiple carton sizes, and each size carton having individual capacity.
    Each style garment having individual weight and so it will occupy in different quantities, if the carton sizes are remains same.
    We have input of size wise / style wise garment quantity and also we have carton capacity / style / size to calculate how much cartons we required to pack.
    Here i have attached the chart and pls trigger your valuable formula to make this magic.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515

    Re: Carton box calculation for dress

    These sorts of "packing" or "knapsack" problems rarely reduce down to simple formulas. They are deceptively difficult to program.

    If you are not required to program your own solution from scratch in a spreadsheet, you might search for preprogrammed solvers for this kind of packing problem. Even if you have to pay for a software license, it might be easier in the long run.

    The easiest way (when it works) in a spreadsheet to solve knapsack type problems is to build a spreadsheet + Solver model that solves the problem. Build the spreadsheet to calculate the number of cartons (or whatever best represents your objective function) from a given packing configuration. Then call Solver and tell it to optimize the number of cartons (objective function) by changing the packing configuration. I didn't understand the packing logic your spreadsheet was trying to communicate, so I have no specific recommendations, but that is the overall idea.

    The brute force programming method is to figure out how to try every possible packing configuration, then choose the configuration that resulted in the best optimization.

    If you need some help understanding knapsack type problems in Excel, you can try putting something like "knapsack or packing problem in Excel" into your favorite internet search engine and you should find multiple tutorials around the internet.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Carton box calculation for dress

    Hi Mr Shorty...
    Thanks for your time to check my problem.
    I believe excel functions to solve this problem. So i will wait for the right one, who knows to do this magic.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: Carton box calculation for dress

    Looking at your uploaded file I think you only make 6 different styles of garments but the size of each style goes from S to 5XL. It also seems that you have a minimum and a maximum number of garments in a box. Looking at cells O4 and P4 I think you must have a minimum of 92 garments size small and a maximum of 111. Right or wrong?

    How about box cost? Is this perhaps something that should be taken in account? Say 55 garments style 1 could be packaged in two boxes 60X40X10 or just one box 60X40X20. Probably the latter but it could be other constraint like packing, storing facilities and transportation that should be considered.

    Alf

  5. #5
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Carton box calculation for dress

    Hi Alf,
    Pls note, don't limit the styles as 6. it may goes till 50.
    The Sizes are totally 8 but not same as S to 5XL. This data required to edit based on garment sizes.
    You are right on the concept of minimum and maximum quantity per carton.
    To consider about the cost of carton box, we have to fill the pieces from bigger cartons to smaller carton.
    i.e. we have 100pcs in 4xl size, first fill the catron 60x40x40 - 91 pcs
    The balance 9pcs goes to carton size 60x40x10

    Hope you understand and thanks for your interest.

  6. #6
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Carton box calculation for dress

    Hi.. Anybody trying to work this problem? Its pleasure to wait with confidence..

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,794

    Re: Carton box calculation for dress

    A first attempt to see if this is something you could use. This is a solver based setup. Having min and max values for the different boxes made it a bit tricky for me
    to set up. Hopefully bsalv or Hydraulic will take a look at this and suggest a better model.

    For a number of garments one could use a VBa loop to get the different result. The macro is written for Excel 2019 should work in Excel 2023. But macros and solver will
    not work in an Mac environment.

    Alf
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    399

    Re: Carton box calculation for dress

    Since we are filling the boxes from smallest to largest, I think we can solve the problem without Solver.
    We always use at most one of the first three box sizes, and as many of the largest as needed.

    However, the layout of the worksheet is a nightmare. I have changed and simplified it a little, so that we only need the number of items that switch box size from smaller to larger.

    With this setup the number of boxes is minimized, and assuming that costs are proportional to box dimensions, the combination we find is the cheapest.

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  9. #9
    Forum Contributor
    Join Date
    03-28-2016
    Location
    india
    MS-Off Ver
    2013 (in 2023)
    Posts
    134

    Re: Carton box calculation for dress

    Hi Hydra...
    Really its simple and working good. Thanks for your valuable formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Carton/box size calculator formula
    By 0235 in forum Excel General
    Replies: 8
    Last Post: 02-20-2025, 01:37 PM
  2. Carton box stuffing calculator
    By Rikimaru402 in forum Excel General
    Replies: 4
    Last Post: 10-22-2023, 07:13 AM
  3. Replies: 2
    Last Post: 04-05-2023, 10:29 PM
  4. [SOLVED] Is there anyway to calculate the number of carton in this way?
    By HXIO in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-14-2018, 02:13 PM
  5. Carton # of 250 help
    By SPIG in forum Excel General
    Replies: 8
    Last Post: 10-10-2016, 07:24 AM
  6. Shipping carton Allocation?
    By trepetti in forum Excel General
    Replies: 2
    Last Post: 08-06-2014, 10:50 AM
  7. [SOLVED] Chart Dress Up
    By gz3s36 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-07-2014, 09:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1