+ Reply to Thread
Results 1 to 16 of 16

Split Value between each Groups

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Lightbulb Split Value between each Groups

    Hello Users,

    Please help in solving the following - I have a data with groups (A,B,C...).

    A total value is required to be split between the groups. Each group has FTEs and this FTEs will be dynamically changed.

    In spite of change in FTEs, the total value should be spilled across each group depending on the size of the group.

    If a group is having only one FTE, then the minimum total value split should be 150 and if a group has 0 FTE, then it should be excluded and the distribution of total values to be done for the other groups.

    Please help
    Attached Files Attached Files
    Regards,

    Fareed

  2. #2
    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,460

    Re: Split Value between each Groups

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    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.

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: Split Value between each Groups

    Please let me know what I need to do if no one is supporting on the other end. I have been cross posting as I didn't get any help.

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

    Re: Split Value between each Groups

    Nothing other than disclose where else you have asked the same question. I have told yu what to do - read my post properly.

    The rule is the same on cross-posting on both forums. I suggest you take a moment to read through our rules immediately.

    Provide the link requested, please. The rules apply to everybody, even those who don't actually read them.

  5. #5
    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,460

    Re: Split Value between each Groups

    Please stop sending me private messages about this. You need to provide the cross-post link requested - nothing more. Nobody is exempt from our rules.

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: Split Value between each Groups

    I have asked the help in following blog. Please find the link here - https://chandoo.org/forum/threads/di...0/#post-278986

  7. #7
    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,460

    Re: Split Value between each Groups

    Thank you for the link.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Split Value between each Groups

    Try E3:=IF(D3=$I$9,$J$9,($H$2-(COUNTIF($D$3:$D$51,1))*$H$3)/($D$52-COUNTIF($D$3:$D$51,1))*D3), copy down.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Exclamation Re: Split Value between each Groups

    Thanks for your formula. I tried with the formula, when I changed the group value to 1, the minimum amount should come to 150. and the total distribution across group value should sum up to 213000.

    But now in the attached sheet, the group value for 1 (NAME I) is coming to 25.83, but it should be 150 and the balance (213000 - 150 = 212850) to be distributed in other rows.

    The formula which you shared gives the same result when I use the below formula
    Please Login or Register  to view this content.
    The difficult part for me is to get 150 for minimum value 1 and the total points to be distributed across the row where the total should be equal to the Total Points
    Attached Files Attached Files

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Split Value between each Groups

    Maybe try

    =IF(D4<2,$I$4*(D4>0),($I$3-SUMIF($D$4:$D$52,1)*$I$4)/($D$53-SUMIF($D$4:$D$52,1))*D4)

    or
    =IF(D4<$I$4/$I$3*$D$53,$I$4,($I$3-COUNTIFS($D$4:$D$52,"<"&$I$4/$I$3*$D$53)*$I$4)/($D$53-SUMIF($D$4:$D$52,"<"&$I$4/$I$3*$D$53))*D4)
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Split Value between each Groups

    The formula should be:=IF(D3=1,$H$3,($H$2-(COUNTIF($D$3:$D$51,1))*$H$3)/($D$52-COUNTIF($D$3:$D$51,1))*D3)
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: Split Value between each Groups

    Thanks for your support. The 1st formula works better. But the issue is for group value 1 it's giving 150. But if the Group value is 2 then its giving less than 150.

    The minimum distribution across the row should be 150 when the Group value is 150. so if the group value is more than 1 then the points allocated should be more than 150 as 150 is the minimum distribution.

    Hope you got my requirement.

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Split Value between each Groups

    Revised formula:=IF(D3=1,$H$3,MAX($H$3,($H$2-(COUNTIF($D$3:$D$51,1))*$H$3)/($D$52-COUNTIF($D$3:$D$51,1))*D3)), total will not add up to 30,000.

  14. #14
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: Split Value between each Groups

    @ Josephteh, Thanks for your support. I have checked the formula again the same logic as mentioned above, the minimum distribution to be 150 for a row. So for 1 it should be 150 as miniimum so if the group value has more than 1 FTE then the total points should be >150.

  15. #15
    Forum Contributor
    Join Date
    02-27-2015
    Location
    United Arab Emirates
    MS-Off Ver
    2013
    Posts
    162

    Re: Split Value between each Groups

    Why we can't able to stick the total to total points mentioned as FTE changes. Some one told about linear distribution but I have no clue on applying the same

  16. #16
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Split Value between each Groups

    So what you want is to distribute 30000 points to the names proportionate to the number of FTEs they have, subject to a minimum distribution of 150 points, on condition they have at least 1 FTE?

    Formula:=IF(D3<=$H$3/$H$2*$D$52,$H$3,($H$2-COUNTIF($D$3:$D$51,"<="&$H$3/($H$2/$D$52))*$H$3)/SUMIF($D$3:$D$51,">"&$H$3/$H$2*$D$52)*D3)
    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. Split range of Rows into equal groups.
    By JSGP in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2021, 06:19 AM
  2. Split dataset into two groups with minimum deviation on multiple values
    By te00 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2019, 02:35 AM
  3. Request = how many permutations you need for 14 groups split two by two
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2017, 04:10 PM
  4. [SOLVED] Reformat data in specific way using filter and split to two groups
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-09-2016, 06:26 PM
  5. [SOLVED] Need a macro to split 5020 codes into groups by 220 each
    By Arty_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2014, 08:47 AM
  6. [SOLVED] Split percentages into groups of 10 for 5 segments
    By dchubbock in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2014, 06:56 PM
  7. Split Data into User Defined Groups
    By clacketyclack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2012, 04:37 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