+ Reply to Thread
Results 1 to 9 of 9

Allocation of 4 different items EQUALLY based on odd number of requirements

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Allocation of 4 different items EQUALLY based on odd number of requirements

    I wonder if anyone can help me, I don't know if there's a way to do this within excel or whether I will have to manually do this.

    I have 4 equal numbers of items, 6,500 item 1, 6,500 item 2, 6,500 item 3 and 6,500 item 4.

    I have to allocate all 26,000 items based on how much each person needs, but that number isn't neccessarily a multiple of 4.

    I have 1500 people to distribute the items to, all with a specific number of items needed. I.e John Doe needs a total of 7, Jane Doe needs a total of 26.

    It does not matter if they receive more of one item than the other.

    Is there a way in excel to evenly distribute all items?

    THANK YOU

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    I hope I understood the task correctly.
    4 different sheets with different solutions of increasing complexity. The last one contains some array formula.
    Hit F9 to generate new random number of items for each person for testing.
    There is a formula summing up how much of each item was used and those numbers deviate less for the more complex solutions.


    This was a pretty interesting task and now I'm waiting for some of the more experienced guys to come up with improvements. To be honest my complex solutions are just too massive.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  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,962

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    Hi and wlecome to the forum

    From the sounds of it, I would think you need to calc some sort of proportion, based on how much each person needs to the total "needs", then apply that to each of the "items"?
    You did not specify if John needs 7 or each or 7 in total, so assumed 7 of each
    John Doe 7 = 0.028%
    Jane Doe 26 = 0.104%
    Total "needs" = 25000

    So John would get .028% of each of the 6500 items = 1.82 of each item.

    If this is what you want, then give it a shot and let us know how you make out. If it isnt, I suggest you upload a sample workbook with dummy data and a few examples of your expected outcome
    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
    Registered User
    Join Date
    11-22-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    Quote Originally Posted by FDibbins View Post
    Hi and wlecome to the forum

    From the sounds of it, I would think you need to calc some sort of proportion, based on how much each person needs to the total "needs", then apply that to each of the "items"?
    You did not specify if John needs 7 or each or 7 in total, so assumed 7 of each
    John Doe 7 = 0.028%
    Jane Doe 26 = 0.104%
    Total "needs" = 25000

    So John would get .028% of each of the 6500 items = 1.82 of each item.

    If this is what you want, then give it a shot and let us know how you make out. If it isnt, I suggest you upload a sample workbook with dummy data and a few examples of your expected outcome
    Here's a sample workbook in which I have done the calculations manually so that you can see what I'm trying to achieve.
    My problem actually has 6500 of each item and 1500 people to distribute to, so I'm sure you can see how much manual work this would be!
    Thanks for all your help!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    Did you check out sheet4 in the workbook I posted?

  6. #6
    Registered User
    Join Date
    11-22-2013
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Red face Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    Quote Originally Posted by Jacc View Post
    Did you check out sheet4 in the workbook I posted?
    No, sorry I missed it...That appears to work! I don't understand how but I'm going through it and hopefully I can apply it to my problem. Thanks so much!!!

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements


    ----------

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    Updated version. First row inequality fixed and 4 columns removed.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Allocation of 4 different items EQUALLY based on odd number of requirements

    While solving a similar problem, a few more refinements were made to this one. Other thread: http://www.excelforum.com/excel-form...employees.html
    I post this here so it won't get lost.
    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. Urgent Please Help - MACRO - need to count the number of items based on status
    By rpriyadharsini1987 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2013, 01:45 AM
  2. [SOLVED] Display Week Number based on special requirements
    By PY_ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-05-2013, 08:50 AM
  3. [SOLVED] Counting number of items based on two columns
    By lukka in forum Excel General
    Replies: 3
    Last Post: 04-18-2012, 05:14 AM
  4. Calculate % based on 2 Requirements
    By LinkOps in forum Excel General
    Replies: 3
    Last Post: 01-10-2011, 05:40 AM
  5. Allocation of inventory items
    By northenalias in forum Excel General
    Replies: 4
    Last Post: 08-17-2009, 07:18 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