+ Reply to Thread
Results 1 to 24 of 24

Formula to divide out limited resources (marbles) to a group that wants more

  1. #1
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Formula to divide out limited resources (marbles) to a group that wants more

    I need a formula in column D that will give everyone their marble allocation based on how many they want, and their score.
    Column A: Users Name Column B: How many marbles each person wants in a perfect scenario Column C: Their score or ranking within the group (higher score gets more) Column D: Here is where I want to input the formula, drag down and get the number
    Variable: Marbles available: This is how many I can hand out, so total of column D needs to equal this Max Marbles per person: The most that any 1 person can be assigned Min Marbles per person: The amount of marbles the last person would get Top X get Max: If 3 is typed in here then the top 3 scores would get 20 then it would drop from there Marble difference per person: This is a formula that would say how much less then the person above you, you get after the top 3. So maybe each ranking after the top 3 the marbles assigned drops by 0.6 in order to end at the minimum number
    Notes: If someone's assigned marbles is more then they want it needs to default them to them to their wanted amount and divide the rest up between everyone else not in the top 3
    If people have the same score their allocation should be the same. It would only be different if one of the people want less then what their allocation would be.
    Screenshot:

    Z1w7jGX.png

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Nothing is more frustrating than to be working on homework and to get stuck. Without guidance, you might have no hope of finishing the assignment before the deadline. The Internet can be a big help in that respect, but without learning how to get the right answer, asking others to solve your homework questions for you simply becomes a downward spiral (and it's cheating).

    We do not want to contribute to you cheating yourself out of your education, but we also acknowledge that seeking assistance to learn a concept is a legitimate request.

    If you are genuinely interested in receiving help in the form of tutoring or coaching, then please rephrase the title of your original post to clearly indicate you are seeking coaching or tutoring help. Any forum members (who are willing to assist as a tutor) will modify their responses accordingly to facilitate your learning. Tutors don't tell you the answers, they help you figure it out for yourself; so don't expect answers, expect suggestions, or just plain hints. Also, be specific in describing the function/formula or technique you trying to learn, and tell us what you have attempted so far. Otherwise, expect your plea for homework answers to be ignored.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Doesn't appear to let me edit the subject only the description. Definitely not homework, but a formula I have been fighting with for weeks. I have tried VBA code, a million if statements, arrays, closest I get is circular references. Definitely just looking for some guidance.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Spreadsheet is now attached with fake info.
    Attached Files Attached Files
    Last edited by superskid; 02-08-2018 at 02:18 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Please see point 2 of post #4, address this and then reattach yoru workbook.

  7. #7
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Re uploaded in previous post. I saw it, I just don't know what the mock up answer is because I need the formula to calculate it. I have just added a description of what it should be instead.
    Last edited by AliGW; 02-08-2018 at 02:26 AM.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    To what extent, if at all, does the number of marbles allocated need to be weighted? Without knowing all of the criteria you need applying, any suggested solution will likely be wrong. Please try to explain everything that you want taking into consideration. It's a little bit too vague at present.

  9. #9
    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: Formula to divide out limited resources (marbles) to a group that wants more

    I get the allocation, but how can you give out fractional marbles?
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Well I know that the top 3 get allocated the max or max of what they want to take. The last place person gets 0.1, so between the 4th person and the last place person it should tier down evenly the remaining amount to have the last person get the 0.1 and then it will all add up to 100. So really once we know what the 4th person gets it can drop evenly for each rank after, keeping in mind some people have same rank and need same allotment (unless one wants less than their allotment)

  11. #11
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Marbles is just dummy data, this is something I can give fractions out too. I guess ideally round to 3 decimal places but that's not urgent I can manually do that after.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    And will the number of people always be the same, or will it change?

  13. #13
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Quote Originally Posted by AliGW View Post
    And will the number of people always be the same, or will it change?
    It will change, so it would need to count between the last place person and the 4th person. Or 7th person if I say that top 6 get the max amount.

  14. #14
    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: Formula to divide out limited resources (marbles) to a group that wants more

    A
    B
    C
    D
    E
    1
    Avail
    100
    2
    Max
    20
    3
    Min
    0.1
    4
    5
    Name
    Wants
    Score
    Gets
    6
    Will
    18
    140
    18.0
    D6: =MAX($D$3, MIN(B6, $D$2, $D$1 - SUM(D$5:D5) - $D$3 * COUNT(B7:$B21)))
    7
    Billy
    50
    110
    20.0
    8
    Wayne
    40
    110
    20.0
    9
    Mark
    20
    90
    20.0
    10
    Douglas
    65
    86
    20.0
    11
    Vicky
    30
    86
    1.1
    12
    Marry
    50
    85
    0.1
    13
    Mike
    5
    80
    0.1
    14
    Barry
    40
    65
    0.1
    15
    Ben
    3
    50
    0.1
    16
    Tom
    20
    25
    0.1
    17
    Amy
    35
    25
    0.1
    18
    Andrea
    40
    16
    0.1
    19
    Ales
    7
    13
    0.1
    20
    Jamie
    22
    9
    0.1
    21
    22
    Total
    100.0
    D22: =SUM(D6:D21)

  15. #15
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11
    Only the last place person should get 0.1 and the top 3 the max, everyone else should be in between adding to the 100.

    So last 0.1 2nd last 0.15 3rd last 0.2 just need to calculate that increment to go up from the bottom by.
    Last edited by AliGW; 02-08-2018 at 04:41 AM.

  16. #16
    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: Formula to divide out limited resources (marbles) to a group that wants more

    That's a pretty random set of rules ...

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Superskid - please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Quote Originally Posted by superskid View Post
    ... just need to calculate that increment to go up from the bottom by.
    No - it's obviously not as simple as that!

  19. #19
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Ya, thought I had it today, but got circular references if people asked for less than their allotment.

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    So, are you going to share what you tried?

  21. #21
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    In the end I don't think it's close to being right, when I played with the variables it would ignore how many total marbles were allowed. I'm going to try the VBA route, will post here if I get anything half decent.

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    Well, if you don't post it, we can't troubleshoot it. Good luck!

  23. #23
    Registered User
    Join Date
    02-07-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    It wasn't close enough to trouble shoot, a couple glaring errors and it was about 8 full lines long with named ranges etc... Went too far down that rabbit hole.

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Formula to divide out limited resources (marbles) to a group that wants more

    So shall I move this to the VBA section?

+ 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. Divide a column by a number and group results in columns of that number
    By AnthonyMarx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-02-2016, 02:06 PM
  2. Replies: 2
    Last Post: 09-15-2016, 01:10 AM
  3. Replies: 2
    Last Post: 08-10-2016, 04:01 AM
  4. [SOLVED] 8 group divide by say 34 players in to each group
    By micope21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2016, 08:23 AM
  5. How to add group number to equally divide number of rows
    By neualex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 03:34 PM
  6. How to divide a group of numbers in to 3 groups as equal as possible.
    By herbeey in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-27-2013, 08:10 PM
  7. divide into group of 10
    By alizok in forum Excel General
    Replies: 6
    Last Post: 02-07-2011, 02:21 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