+ Reply to Thread
Results 1 to 2 of 2

Tool to find best fitting box (packaging requirements)

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Tool to find best fitting box (packaging requirements)

    Hi all,

    I need some help.

    I have a list of product dimension (length, width and height) and I need to find the most suitable box for them to fit in; the box should be as small as possible but it can not be smaller than the products dimensions. Sometimes there will be exact matches but most of the time there won't be; I've been racking my brain but the only solution I've come up with finds only exact matches.

    If there isn't an exact match then it needs to say so with a specific comment:

    Variance Comment
    <30 Below 30 variance
    <45 Below 45 variance
    <60 Below 60 variance

    Attached is an example spreadsheet, the real data has hundreds of box sizes and thousands of products.

    I'm sure there's a way of doing this in VBA but I can't think of how to do it, so any help is greatly appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Tool to find best fitting box (packaging requirements)

    I'd sort available boxes on the volume (or any other way, assuring that most favorable boxes are listed first. then box selection is done with one Array Formula*
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *) ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Variance (on volume?, on least fited dimension? ) can then be calculated, and the comment displayed with VLOOKUP
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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. Statistics - find the best matching fitting model ?
    By marca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2017, 02:17 PM
  2. Replies: 1
    Last Post: 06-29-2016, 02:23 AM
  3. Surge Study -Packaging line integration
    By mahesh5277 in forum Excel General
    Replies: 3
    Last Post: 10-10-2014, 08:21 PM
  4. Packaging Excel VBA For Distribution
    By uselessnut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2013, 10:26 AM
  5. Replies: 18
    Last Post: 06-03-2012, 09:23 AM
  6. Excel/VBA Packaging Wizard
    By anassar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2005, 04:06 PM
  7. [SOLVED] Access + Packaging Wizard + Excel
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2005, 09:06 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