+ Reply to Thread
Results 1 to 6 of 6

Evenly Distribute Data through Groups

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    Calgary
    MS-Off Ver
    Office 2010
    Posts
    8

    Evenly Distribute Data through Groups

    Hello,

    I am new to the forums and need some help. I have attached a spreadsheet to provide the example of what I am trying to do. What I have is 9 groups marked A through I and within each group is a series of "transits" and those transits have a certain amount of volume on any given month. What I need to do is write a macro that will allow for the total amount of volume in the transits to be evenly distributed through each of the 9 groups. So in the example the average of the groups is 168 total volume therefore I need each group to have as close to average (being 168 in this example) BUT in order to do this I would have to move the different transits into a new groups to achieve that balance.

    The purpose of this is because I need different people processing different groups each month due to compliance and when I reshuffle the groups among people I also want to be able to re-balance the groups based on volume. I can't be the only person to have encountered this problem or wish, and I'm not a macro novice but this one has stumped me completely. Please help!
    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: Evenly Distribute Data through Groups

    Please take a few minutes to read the forum rules about cross-posting.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-23-2015
    Location
    Calgary
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Evenly Distribute Data through Groups

    Hello shg,

    Thank you for the reminder on forum rules. I have removed the thread that causes the cross posting issue and will keep this thread as active as this is where I was able to post the spreadsheet as the example. Would you be so kind to help me with the formula you mentioned based on the spreadsheet I provided above? I understand you posted =INDEX($D$1:$L$1, MATCH(MIN(D2:L2), D2:L2, 0)) but I want to be sure it works out my problem as I'm getting some wonky results. Considering a different person will process each group each month I need to ensure that the transits within the groups being adjusted to meet the average of the total volume is being evenly spread through as well.

    So as an example if I needed to adjust group A by 5 total volume I need the formula / macro to tell me which transit within the groups needs to be moved into group 5 to give it the correct and even volume.

  4. #4
    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: Evenly Distribute Data through Groups

    It does the assignment from scratch rather than transferring existing assignments.

  5. #5
    Registered User
    Join Date
    02-23-2015
    Location
    Calgary
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Evenly Distribute Data through Groups

    Thank you Shg, I understand the formula now and might be able to make this work. In case I cannot do you know of a way that the formula can transfer existing assignments? Or am I asking the impossible?

  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: Evenly Distribute Data through Groups

    It would be a different approach and different formula.

+ 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 Data Evenly Among n Cells
    By TimBZKK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2018, 02:02 AM
  2. [SOLVED] Distribute Tasks Evenly
    By karthikcoep in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2015, 05:48 AM
  3. Distribute Data Evenly
    By sohlican in forum Excel General
    Replies: 13
    Last Post: 09-19-2014, 07:37 PM
  4. Distribute variables evenly
    By Jovanator in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2014, 12:15 PM
  5. Evenly Distribute Groups of Numbers?
    By BigBadBoy in forum Excel General
    Replies: 12
    Last Post: 01-14-2014, 08:29 PM

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