+ Reply to Thread
Results 1 to 12 of 12

Nesting lengths using Excel to determine optimal "multing"

  1. #1
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Nesting lengths using Excel to determine optimal "multing"

    I am required to nest certain lengths of items together to get the smallest physical length I can to keep length required as small as possible and eliminate waste. In the attached file you will see that items are catagorized by column F and then sorted shortest to longest using column N. As in the example of Rows 2 thru 6, I thought the best way for me to figure on the shortest length of beam required would be to take 3 times the longest post length (cell N60) and 3 times the shortest post length (cell N2) and add them together. (For reference, each BEAM will produce six POSTS in this particular situation). This returned a value of 26.01 ft which I rounded up to 26' 4" (all order lengths of beams need to be rounded up to the nearest 4" increment). I then add a determined amount of allowable scrap to the final length to determine what the optimal purchasing length would be. I "thought" this would work fine, however, when I started to nest the three longest with the three shortest posts and so forth, as I approached the middle of the pack, the total length of all six posts was starting to exceed the purchased length of the beams.

    Is there a macro that could be writen where I could highlight a specific cell range, run the macro which would promt me for the number of posts per beam, the macro would then automatically group the rows together so as to keep the scrap value as low as possible? Then, maybe highlight every other grouping so as to make the grouping be more visible? I tried using the average, the mean, etc. but couldn't find anything that worked.

    Any help would be greatly appreciated.

    CheddarThief
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nesting lengths using Excel to determine optimal "multing"

    There's a simple cut list at http://www.box.net/shared/uhrjy318l1
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Nesting lengths using Excel to determine optimal "multing"

    Thanks but I already have a cut list. What I need is something that takes a range of numbers and groups them in a set amount of numbers, in this case six, then tells me what the minimum finished length of steel I need to create the largest six piece grouping. Does that make sense? Maybe I'm talking in circles.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nesting lengths using Excel to determine optimal "multing"

    If you're going to purchase some number of pieces of one fixed length of stock, then you could enter your cut lengths and quantities into the cut list (the link I posted), and vary that fixed length to see what gives the smallest amount of waste. That cut list works well if the stock length is large WRT the smallest cut lengths.

    Figuring out an optimal stock length to minimize waste for a large number of pieces of various lengths is a non-trivial exercise. There are commercial programs that do it.

  5. #5
    Forum Contributor
    Join Date
    02-20-2010
    Location
    Youngstown, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Nesting lengths using Excel to determine optimal "multing"

    If I were buying them from say 40'-0" stock lengths that would work great. However, in my industry (heavy steel fabrication for the bridge industry) we sometimes put in what are called "mill orders". This means we have enough weight to put an order in directly to the mill and cut out the middle man who typically buys material in the stock lengths we spoke about. At the mill, we can order materials in cut length intervals of 4". What I was hoping was there is a formulation that Excel could look at a series of the finished cut lengths I need, group them together so that I could achieve optimal ordering to keep my drop scrap to a minimum.

    At first I tried taking the total Net Wt. of all the like pieces (W8x48) and dividing that number by the total number of pieces. This gives me the average net wt per piece. Then I divided that number by the wt/ft, in this case 48, and got the average length per piece. I then multiplied that number by the anticipated pieces I'd be getting per beam to calculate my beam length. However, when I tried to figure the physical nesting, this didn't work out since the length of the posts is not an even curve across the total number of pieces. I thought possibly the MEAN formula could help me but again, that didn't work.

    As I said, if I were buying stock pieces, this whole exercise would be a moot point. I would just use a nesting program (which I already have) and find the optimal cutting settup to eliminate the most amount of drop waste. What I have is a situation where I get to control the ordering length to some degree to help in keeping the waste low. Maybe this is something beyond Excel's capability or even someone's program writing but I thought I'd just ask.

    I've tried to find these programs you are referring to but all of them require that I put in the finished lengths that the pieces will be taken from rather than the program giving the best order length to me.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nesting lengths using Excel to determine optimal "multing"

    I realize the workbook you posted may support other objectives, but can't find the forest in the sea of data it contains.

    If you have a list of cut lengths and cut quantities for a given stock, and your mill order is for N pieces, each of length L = 4*K, where K is integer feet and L <=??, then all you have to do is pick K to minimize waste and then calculate N -- correct?

    If it's a different problem than that, then I don't know what it is, sorry.
    Last edited by shg; 05-17-2011 at 01:30 PM.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nesting lengths using Excel to determine optimal "multing"

    Or maybe the problem is this:

    Given a particular type of stock (e.g., W8x48) and the number and lengths to be cut from it, find the combination of pieces that best matches one of the standard lengths (4' increments). Remove those pieces from the requirements, and repeat until all pieces are accounted for. Generate a cut list for each piece of stock purchased.

    Getting any closer?

  8. #8
    Registered User
    Join Date
    06-14-2016
    Location
    uae
    MS-Off Ver
    2016
    Posts
    3

    Re: Nesting lengths using Excel to determine optimal "multing"

    The Excel works perfect for the initial Nesting but what about the remaining Scrap

    how can this be used ?????

    I tried with Stock Length 12000 and found there are some Scrap 4500 balance as the Qty are completely nested

    next time when i need to Nest for Other Part how can i use this 4500 balance material ??


    is it possible to have one more cell where the user can input the balance scrap length and the VBA program use this scrap first and than start using the New stock length

  9. #9
    Registered User
    Join Date
    11-07-2018
    Location
    Bulgaria
    MS-Off Ver
    2007
    Posts
    34

    Re: Nesting lengths using Excel to determine optimal "multing"

    About the cut list provided from shg:

    Very nice list, very useful, but I think there is one small flaw. If you enter equal lengths of stock and part the formula returns 1 (i.e. 1 pcs. cut) regardless of Kerf value. This should only be true if Kerf value is zero. Otherwise it should not be possible to cut this part. Is there a way to correct this? Or maybe there is a new updated version, since this post is more than 10 years old?
    Last edited by Petkov; 11-10-2018 at 02:07 PM.

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Nesting lengths using Excel to determine optimal "multing"

    Hi Petkov,

    Unfortunately your post does not comply with Rule 4 of our Forum Rules.

    Please do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    HTH
    Regards, Jeff

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Nesting lengths using Excel to determine optimal "multing"

    Very nice list, very useful, but I think there is one small flaw. If you enter equal lengths of stock and part the formula returns 1 (i.e. 1 pcs. cut) regardless of Kerf value.
    If the stock is the same length as the required part, no cut is required, so the kerf doesn't matter.

  12. #12
    Registered User
    Join Date
    11-07-2018
    Location
    Bulgaria
    MS-Off Ver
    2007
    Posts
    34

    Re: Nesting lengths using Excel to determine optimal "multing"

    jeffreybrown,

    I apologize, will not happen again.
    Last edited by jeffreybrown; 11-11-2018 at 10:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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