+ Reply to Thread
Results 1 to 9 of 9

Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    Kenora, Ontario Canada
    MS-Off Ver
    Office2013
    Posts
    2

    Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    I am fairly experienced with excel. I have discussed this problem with my co-excel nerd. We can't come up with a solution.

    I ship monthly ten or so different items, in different quantities and weights. I am permitted to put 150 lbs on a waybill, then must start a new waybill.

    My department does it manually. I want excel to sort it for me. I keep coming back to it and can't solve it.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Have you worked with SOLVER? Sounds like your ticket.

    Link provided through Excel Help. https://www.solver.com/excel-solver-online-help

    Pete

  3. #3
    Registered User
    Join Date
    12-11-2020
    Location
    Kenora, Ontario Canada
    MS-Off Ver
    Office2013
    Posts
    2

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Never heard of solver. I will explore that further. Isn't excel just such a wonderful way to keep learning.
    Thanks

  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: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    I've made two possible setups for solver. As this is a simple problem I used the Simplex engine. As you problem is easy to define one does not need to specify a Max, min or a
    specific value for the target cell. Just setting the constraints are sufficient.

    Alf
    Attached Files Attached Files
    Last edited by Alf; 12-11-2020 at 05:57 PM. Reason: Uploaded wrong file first

  5. #5
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    373

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Starting from Alf's setup, here is a different one using integer variables. It can split multiple items among bins.

    Please note there is no guarantee that the first bin will be filled as much as possible before starting the second one, and so on.

    If this is what you need - minimize the number of bins - then we need to solve a multiple bin packing problem, and that is much harder.

    There is a free Excel worksheet available here.

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  6. #6
    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: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Hi Francesco!

    Your idea of using integer instead of binary settings is a much better solution than mine! Still I could not resist fiddling a bit with it. As none of us know at the moment if the OP has
    any preference how the solution should be I added an object cell C16=G16+I16 and as function is set to max G16 and H16 both will be 150, cell I16 takes the balance 48.5.

    I also deleted some of your constraints as they were not needed in my setup.

    If on the other hand OP wishes to distribute the total weight evenly between Waybill 1, 2 and 3 changing G18 and H18 to 116. This will give the result G16 and I16 = 116 and
    balance of 116,5 goes to Waybill 3.

    Alf
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-14-2018
    Location
    China
    MS-Off Ver
    Office 2010
    Posts
    41

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Use Weighted Sumproduct, we can fill the first waybill to 150 first.

    see attached.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    In G3 then copied across.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Waybill Puzzle - Max weight, total lbs to max 150, carry over remainder & repeat

    Better option than my previous post. Pl see file
    In G2 then copied across.
    Please Login or Register  to view this content.
    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: 3
    Last Post: 11-02-2020, 01:09 PM
  2. Help calculating the total weight lost from starting weight D1
    By rgainey201 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-31-2014, 06:16 PM
  3. [SOLVED] How to calculate total weight
    By Shi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2013, 06:49 AM
  4. Carry Over Total Problem
    By snoish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2008, 05:25 AM
  5. Replies: 2
    Last Post: 11-15-2006, 11:04 PM
  6. [SOLVED] Calculate intermediate total on page change and carry it over.
    By Rahul Gupta in forum Excel General
    Replies: 2
    Last Post: 07-17-2006, 11:50 AM
  7. How to summarize the total weight...
    By rantz in forum Excel General
    Replies: 6
    Last Post: 12-09-2005, 12:35 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