+ Reply to Thread
Results 1 to 10 of 10

Formula help to find how many lengths of an material per column of figures

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    7

    Formula help to find how many lengths of an material per column of figures

    Hi,

    This one has gone over my head, and can't figure it out at all! Basically, I have a column of figures, and want to know when added up how many will fit in 5000mm lengths.

    It's so I can help my son when he wants to build some fencing for his garden as well as flower beds. The wood comes in 5000mm lengths, and obviously we don't want to buy more than we need, sizes vary from 320mm up to 1990mm and about 150 sizes in total, so you can see why we want Excel to work it out. I'll be able to use this with my garden after we do his!

    I hope this makes sense?

    Thanks
    Stu
    Attached Files Attached Files
    Last edited by MrExcel78; 08-13-2017 at 03:07 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Formula help to find how many lengths of an material per column of figures

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    04-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    7

    Re: Formula help to find how many lengths of an material per column of figures

    Hi John,

    Think I've sorted it, it shows the sizes to make each fence and the same for the flower beds. I've put on what the total wood needed to make each fence/bed is, but then when we looked we saw a big amount of wastage.

    So we was thinking instead of cutting per fence, excel could work out the optimal amount of fence timber we can use.

    Example

    It would put 5 smaller sizes with a few larger ones to meet the 5000mm and carry on that way to maximise

    Thanks

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Formula help to find how many lengths of an material per column of figures

    150 sizes is going to be an issue!

    Can these not be reduced to a much more reasonable range: think of "standard" fence panelling of 6' & 6': you would not go and buy a multitude of sizes.

    Perhaps spilt the sizes between those for fencing (why potential so variable/) and flower beds.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula help to find how many lengths of an material per column of figures

    Not an answer, but you could look at the Excel solver.

    => Data => Solver
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    04-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    7

    Re: Formula help to find how many lengths of an material per column of figures

    Quote Originally Posted by JohnTopley View Post
    150 sizes is going to be an issue!

    Can these not be reduced to a much more reasonable range: think of "standard" fence panelling of 6' & 6': you would not go and buy a multitude of sizes.

    Perhaps spilt the sizes between those for fencing (why potential so variable/) and flower beds.
    The thing is that we are custom making the fences? I just thought Excel would use a type of sum or sort formula to arrange the figures to meet the maximum 5000mm

    I know what you mean though, we did a ball park figure and against the total of all the sizes divided by 5000 it was as big difference.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Formula help to find how many lengths of an material per column of figures

    Yes: I realise you are doing a "bespoke" set of fencing:

    But for example, how variable is the fence height and what distance do they run e.g 100ft run at 6ft, 50ft run at 7ft height ......

    So you have to choose a small series of optimal heights: the problem per se is not Excel but a mathematical optimisation which can get very complex (and I am no mathematician).

  8. #8
    Registered User
    Join Date
    04-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    7

    Re: Formula help to find how many lengths of an material per column of figures

    yeah I think I understand, the smallest fence is 580 x 950 and the biggest is 500 x 1800. Once we do the frames we have mesh to staple onto them. the flower beds are same in a frame but we are using feather board on them.

    the more I look at it the more I think it's a manual task for me (might need a few drinks while I do it) in that i will just click on a few sizes till they meet 5000 and then delete and mark one piece, then another group, delete and mark second piece and keep going.

  9. #9
    Registered User
    Join Date
    08-13-2017
    Location
    Poland, Warsaw
    MS-Off Ver
    2013
    Posts
    1

    Re: Formula help to find how many lengths of an material per column of figures

    Hello,

    This is my first post on this forum :-)

    I think I have a solution to your question. However it will be limited in its practicality due to a very high number of permutations you are facing.
    What you are after is a number of permutations possible, out of certain set, that meet certain criteria. In your case, as I understand, the criteria is a length of a plank.
    However what you can do it work on smaller sets and optimise them.

    What I did:
    1. I found a VB code on the Internet and modified it slightly by adding a criteria (which is a plank length).
    2. How the file works:
    a) in sheet 1, in range A3 and down you need to provide a list of values (in your case the list represents individual lenghts of wood pieces that you need). Keep this list short or your PC won't handle it.
    b) in cell A1 you need to type in P which stands for Permutations
    c) in cell A2 you need to type in value which matches exactly number of values you entered in cell A3 and down.
    d) run macro

    The output will be produced in a new sheet. Then what you need to do is:
    a)get rid of duplicates (you can use advanced filter to do this)
    b) then you may want to do 'text to column' to see all planks in separate columns as original outcome is produced in one column with numbes separated by comma as delimiter.

    The code will still produce duplicates but it does not mind as you're after hierarchy of least waste cut- as I understand.


    PS I struggle to add attachment. I will try to do it in another post.

  10. #10
    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: Formula help to find how many lengths of an material per column of figures

    The excel add-in solver could be a possible solution as oeldere says. I've set up a small model with about 20 different cut sizes, I've simplified it a bit by adding
    4 * 1793 and 4 * 1792 to 8 * 1793 and added 1245 and 1244 as 1245 as well as 523 and 522 to 523.

    The model could certainly be extended to include more different cut.

    As solver is run in a loop there must be set a reference to solver in Visual Basic.

    Alf
    Attached Files Attached Files

+ 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: 12-17-2015, 06:26 PM
  2. [SOLVED] PLEASE HELP! SUM formula for certain figures in a column?
    By SallyBV in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-28-2014, 07:43 PM
  3. [SOLVED] Formula to find a match with different string lengths
    By mcranda in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-09-2013, 04:34 PM
  4. Replies: 1
    Last Post: 10-24-2012, 08:37 AM
  5. [SOLVED] Find possible combinations that fall between two lengths
    By Tulipo in forum Excel General
    Replies: 0
    Last Post: 04-23-2012, 08:47 AM
  6. Fill down formula using VBA to varying column lengths
    By Lee Jeffery in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 01-28-2005, 08:40 PM
  7. making one material list from mulitple vendor material lists
    By In the beginning in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2005, 11:08 PM

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