+ Reply to Thread
Results 1 to 6 of 6

Automatically divide list into even segments

  1. #1
    Registered User
    Join Date
    09-06-2008
    Location
    Philly
    Posts
    40

    Automatically divide list into even segments

    Here's the situation:
    I work in a warehouse and we have to divide work out between union employees. With that being said, the work load needs to be relatively even.

    My supervisor usually takes the workload and manually types it into an excel list in the format:
    • 1st column (A2-A10) is truck number, and
    • 2nd column (B2-B10) is amount of work.

    He then created 4 lists (4 different teams of workers) in columns G-H, I-J, K-L, and M-N with data validation in the 1st column (same format, truck number). The 2nd column is then vlookup'd to show the work load. The total work load sums up at the bottom. For each team he can sit there and manually assign each truck to each team using the drop boxes to get the work load relatively even.

    He gets the data from our warehouse management system, so to help him save some time I decided to make an "import" tab where you just copy/paste the CSV export from the WMS. Then, the original list he used to type in (Columns A/B) feeds right over. The 1st column (truck #) is just a simple =Import!B2 and so on. The second column is then a vlookup to get the work load from the Import tab.

    However, he still has to sit there and manually assign each truck to each team to get it relatively even.

    Is there some kind of cool excel coding that could actually attempt to create equal segments out of a group of numbers? Maybe wishful thinking.

    Attached a copy.
    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: Automatically divide list into even segments

    Maybe as attached.
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Automatically divide list into even segments

    perhaps something like this with helper cols on data sheet( ive been working on that for an hour lol)
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-06-2008
    Location
    Philly
    Posts
    40

    Re: Automatically divide list into even segments

    Quote Originally Posted by shg View Post
    Maybe as attached.
    I like it. It's hit or miss. Sometimes it does it very evenly, sometimes it is a bit off.

    What's the logic behind it? What functions?

  5. #5
    Registered User
    Join Date
    09-06-2008
    Location
    Philly
    Posts
    40

    Re: Automatically divide list into even segments

    Quote Originally Posted by martindwilson View Post
    perhaps something like this with helper cols on data sheet( ive been working on that for an hour lol)
    Nice, that is definitely an easier way to manually do it. A lot more intuitive... keyboard is def faster than mouse (in regards to typing team number instead of selecting from a drop box)

    Thanks.. I will incorporate this idea into what he currently uses. Still going to mess around with the automatic one I got above.

  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: Automatically divide list into even segments

    The logic is simple; it assigns the first N trucks in rotation, and assigns each subsequent truck to the team that has the least work in the prior round. It works best if you sort the trucks descending by work, so you assign the largest first.

+ 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