+ Reply to Thread
Results 1 to 5 of 5

DIstribute workload based on values across columns

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    Dallas, Texas
    MS-Off Ver
    MS Office 2016 Professional
    Posts
    2

    DIstribute workload based on values across columns

    I'm trying to distribute school print activity across four print servers based on the number of staff at the schools. My spreadsheet has one column with the School Name and one column with the Number of Staff. I want to distribute these values across the four Server columns without dividing any school's staff across multiple servers. The total staff per server should be as close as possible to the overall average of staff (e.g., total staff / 4 servers).

    In my example, I have 26 schools named A-Z and the total staff per server should be as close to 540 as possible. Is this possible to do with an Excel formula? If not, can the be done with VBA?

    Thanks for your expert reply!
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: DIstribute workload based on values across columns

    Hi ebonham and welcome to the forum,

    I call this answer a snake sort. You first sort the numbers from high to low then use the top 4 numbers and put them in different columns 1,2,3,4. Then reverse the order and put the next in 4,3,2,1. This snakes the placement of decreasing numbers down the rows. See the attached with my first answer.

    Server Distribution snake sort 4 teams.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-21-2016
    Location
    Dallas, Texas
    MS-Off Ver
    MS Office 2016 Professional
    Posts
    2

    Re: DIstribute workload based on values across columns

    Marvin -

    Thanks for the quick reply. This is actually what I was doing, or something very similar. But I was hoping for something that was automated and more accurate. My actual list is well over 1000 organizations and will have more than 4 servers and I was hoping for a way to automate this. I also deal with numerous school districts where I will be doing with the same type of thing so I'd like to replicate it across the board. Ideas?

    -Eric

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: DIstribute workload based on values across columns

    Hey ebonham,

    The method is of most importance in this problem. Here is another try. Take the average of the total and use it to assign servers. Start from the largest and second until you get more than the average. Then move to the next server. See the attached. I'll think about a way to automate this. This method gets a LOT closer than the Snake method.

    Server Distribution Cash Back method .xlsx

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: DIstribute workload based on values across columns

    Hi ebonham,

    I think I have a great solution to this fun problem. I tried to snake the filling of those servers without success. Then after doing your problem by hand many times it came to me. You need to give the next largest school to the server with the least number on it already. I used a little table in yellow to do a CountIf formula showing how many people were on a server down to any point in the rows. A third column shows how close to perfect the sort is.

    You need to sort Column B from Large to Small and then run the code. The code clears Column C and starts down the column assigning each School number to servers. It will add the next (largest) to the server with the least number of people. Problem solved!!??

    Please Login or Register  to view this content.
    Server Distribution Fill the Least Server next.xlsm
    Last edited by MarvinP; 05-16-2017 at 12:00 AM.

+ 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. [SOLVED] Distribute values across columns that equal subtotals
    By rpjohnson in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-23-2019, 11:11 AM
  2. [SOLVED] How to Distribute values based in multiple criteria
    By Jllerenp in forum Excel General
    Replies: 11
    Last Post: 06-28-2016, 08:44 AM
  3. [SOLVED] Excel formula to distribute the workload equally to all individual
    By geh17 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-09-2016, 09:28 PM
  4. Distribute values across columns that equal subtotals
    By espkay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2016, 02:40 AM
  5. [SOLVED] Distribute values in columns based on match between two other columns
    By hydrgal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2013, 04:07 AM
  6. Replies: 2
    Last Post: 07-14-2010, 02:14 PM
  7. Distribute values evenly in two columns
    By MIckeyLove in forum Excel General
    Replies: 0
    Last Post: 04-27-2006, 11:30 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