+ Reply to Thread
Results 1 to 5 of 5

Using excel to optimize panel stock

  1. #1
    Registered User
    Join Date
    01-25-2014
    Location
    Jacksonville NorthCarolina
    MS-Off Ver
    Excel 2013
    Posts
    7

    Using excel to optimize panel stock

    I was wandering if someone could help me with this.
    I have a worksheet that the panel sizes needed to construct 5 piece cabinet doors are entered.
    What I am trying to accomplish is to have the same length panels optimized on panels that can not exceed 42 inches in width.
    For example If I had 2 panels 20 inches wide and 31 inches long and 3 panels 10 inches wide and 31 inches long.
    Then the rough panel size would calculate to be 33 inches long and 41 inches wide with this panel quantity of 1.Then it would calculate the next panel to be 33 inches long and 31 inches wide with this panel quantity of 1
    The worksheet that I currently have does this to some degree but I can only get it to work on a width to width bases. In other words I can not seem to figure out how to combine the total widths of the same lengths and come up with workable rough panel widths.
    I would be thankful for any advice.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-25-2014
    Location
    Jacksonville NorthCarolina
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Using excel to optimize panel stock

    Hi all
    Today we are snowed in so I was able to semi complete my Glue up tally test workbook
    Thanks to ExcelVbaisFun I was able to come up with a algorithm of sorts to list the rough panel glue ups for our 5 piece panel doors
    The only thing that I have not ben able to accomplish is numbering the panels in consecutive order i.e.. Panel 1 panel2 and so on for each panel listed in other words this workbook has 28 panels so I would like each panel numbered 1 thru 28 respectively. Do you have any suggestions on how to accomplish this?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-25-2014
    Location
    Jacksonville NorthCarolina
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Using excel to optimize panel stock

    Ok I think I have the workbook working pretty well thanks to my friend Ali and Dan from ExcelVbaisFun
    Here is the wb if any one is interested. Also If you have any suggestions on how to make it better please post.
    Attached Files Attached Files

  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,758

    Re: Using excel to optimize panel stock

    Good of you to post the final solution to your problem!

    Looking at the macro perhaps one could say that since you almost at the start activate sheet1 you don't need to refer to this sheet i.e.
    Please Login or Register  to view this content.
    just writing
    Please Login or Register  to view this content.
    will work just as well

    The line
    Please Login or Register  to view this content.
    could be written as

    Please Login or Register  to view this content.
    as this will find the last used row in column B instead of setting a high number to ensure that the B column is cleared.

    Please Login or Register  to view this content.
    could be written as

    Please Login or Register  to view this content.
    where the offset command starts clearing the used range starting from the 5th column and here I use Sht1 as this is easier to write than "ActiveSheet.UsedRange".

    So really no improvement of your present code just showing different way of writing some parts of it.

    Alf

  5. #5
    Registered User
    Join Date
    01-25-2014
    Location
    Jacksonville NorthCarolina
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Using excel to optimize panel stock

    Thanks Alf the advice you gave worked well

+ 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. Replies: 4
    Last Post: 01-29-2013, 02:26 AM
  2. Replies: 0
    Last Post: 10-28-2012, 07:22 AM
  3. Optimize Excel what to look for in a new Comp
    By vitalstatistix in forum Excel General
    Replies: 1
    Last Post: 08-19-2011, 10:16 AM
  4. Panel Data Regression in Excel
    By eoino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2010, 09:21 AM
  5. [SOLVED] How can I use Dutch (NL) stock MSN MoneyCentral Stock in Excel
    By Jeroen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-16-2006, 11:20 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