+ Reply to Thread
Results 1 to 5 of 5

Calculating how many set lengths go into a variable length

  1. #1
    Registered User
    Join Date
    08-15-2018
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    1

    Post Calculating how many set lengths go into a variable length

    Hi everyone,

    I'm currently trying to calculate how many standard lengths or a combination of standard lengths go into lengths of variable length. But I'm unable to find any solutions as other optimisation solutions require me to input how many times I want my standardised components to fit inside.

    At work our components are in sets of

    73mm, 75mm, and 77mm

    Or

    110m, 115mm

    and these fit into aluminium tracks of varying length.

    These components are acceptable if they have a combined length of a bit more than the given aluminium track, however having the combined length shorter than the track is unacceptable. This is due to the parts pertaining to window blinds, where full coverage is needed without light leaking from behind. These pieces can overlap inside the track.

    E.g. Using components of 73mm, 75mm, and 77mm, how can they best fit to make a length of 2682mm?

    If someone is able to guide or help me make a spreadsheet where I can input varying lengths and see how many components of each length I need to fully cover.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Calculating how many set lengths go into a variable length

    hmmm i think you need to give costs to get a better answer
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Calculating how many set lengths go into a variable length

    Would something like this help?
    M
    N
    O
    P
    3
    73
    75
    77
    4
    2682
    37
    36
    35
    5
    36.74
    35.76
    34.83

    Top row = your lengths
    M4= your total length
    N4=ROUNDUP($M4/N3,0)
    copied across

    For comparison...
    N5=$M4/N3

    Now you have something to test with
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Calculating how many set lengths go into a variable length

    E.g. Using components of 73mm, 75mm, and 77mm, how can they best fit to make a length of 2682mm?
    assuming
    73mm = 2
    75mm = 1.5
    77mm = 1

    73x9, 75x27 gives zero wastage
    657+2025= 2682 but at a cost of $58.5

    assuming you want to minimise costs
    35x77 = 2695 w 13mm wastage/overlap yields to lowest cost
    35x1 = $35

    i used a solver add in to get to these but its easier to explain it IF i know which one your striving for
    Last edited by humdingaling; 08-16-2018 at 03:57 AM.

  5. #5
    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: Calculating how many set lengths go into a variable length

    Don't know if a small solver model could be of use but I've set up one. The green cells is your input, the gray cells are solver results. The cell E4 is used to set a more
    even distribution of the different lengths.

    You can play around a bit with this number and see how that changes the number of different length to make up your target length.

    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. Help with Mid-Function and variable lengths.
    By spencerwegener in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2018, 03:54 PM
  2. Calculating three most efficient lengths
    By Nanaia in forum Excel General
    Replies: 7
    Last Post: 04-12-2018, 07:45 AM
  3. Replies: 1
    Last Post: 03-23-2017, 02:19 PM
  4. [SOLVED] Parsing data of variable lengths
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2011, 04:54 PM
  5. Calculating the total various lengths.
    By ldavison10 in forum Excel General
    Replies: 5
    Last Post: 03-18-2008, 09:34 AM
  6. Calculating various lengths into one sum
    By ldavison10 in forum Excel General
    Replies: 0
    Last Post: 01-22-2008, 06:13 AM

Tags for this Thread

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