+ Reply to Thread
Results 1 to 13 of 13

Spread of the percentage

  1. #1
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Spread of the percentage

    Hi ...

    How do I get the spread of the percentage in cells AH10:AJ10 to never get below 10% and still add up to 100%?


    See attachment (if it came trough)


    In advance thanks!
    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: Spread of the percentage

    Could you provide a little context, explain what you're calculating?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Sorry ...
    Each player are setting an "x" in their cell a, b or c.
    The percentage is representing the percentage spread of these x's, i.e. weighing the totalt voting in a, b or c.
    I have problem getting my very long formula in the cells AH10:AJ10 to act correctly, at all times, as you can see in my example file.

  4. #4
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Here is a link to an updated version at my Onedrive:
    https://1drv.ms/x/s!AoTBup2FdjrGg55HI86S8rGoSIs3lg

  5. #5
    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: Spread of the percentage

    In AH10 and copy across,

    =70% * AD10 / SUM($AD10:$AF10) + 10%

    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    Z
    AA
    AB
    AC
    AD
    AE
    AF
    AG
    AH
    AI
    AJ
    10
    x
    x
    x
    x
    x
    x
    x
    x
    x
    x
    x
    x
    x
    6
    7
    0
    42%
    48%
    10%

  6. #6
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Ahh, I see something I did forget.
    All values must be rounded up or down to the nearest ten.
    And you formula ends in a 0 in all three cells.
    Why do you start you formula with 70%?
    Have you tested it in other combinations by entering x's in each players cells?

  7. #7
    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: Spread of the percentage

    Quote Originally Posted by Tresfjording View Post
    All values must be rounded up or down to the nearest ten.
    How does that reconcile with "How can I get the percentage to be exact?"

    And you formula ends in a 0 in all three cells.
    Not if you format them as Percent.

    Have you tested it in other combinations by entering x's in each players cells?
    AD
    AE
    AF
    AG
    AH
    AI
    AJ
    16
    1
    5
    1
    20%
    60%
    20%
    17
    7
    4
    7
    37%
    26%
    37%
    18
    0
    6
    2
    10%
    63%
    28%
    19
    7
    0
    3
    59%
    10%
    31%
    20
    5
    5
    6
    32%
    32%
    36%
    21
    4
    5
    2
    35%
    42%
    23%
    22
    4
    4
    3
    35%
    35%
    29%
    23
    6
    3
    3
    45%
    28%
    28%
    24
    3
    6
    6
    24%
    38%
    38%
    25
    4
    1
    6
    35%
    16%
    48%

  8. #8
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Thank you very much, SHG
    Your solution holds water.
    Adding ROUND() did the trick.
    =ROUND(70%*AD10/SUM($AD$10:$AF$10)+10%;1)
    Work fine now.
    My own looooong formula stinks ...

    Again; Thanks

  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: Spread of the percentage

    What result does that give for {5,5,0}?

    What should it give?

  10. #10
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Hi ...

    It's really gone nearly six years?!?

    Well, today I opened the afore mentioned spreadsheet again, and the {5,5,0} spread, gives excatly that, 50% 50% 0%, while I want the result to be 50% 40% 10%. The formula =ROUND(70%*AD10/SUM($AD$10:$AF$10)+10%;1) seems not cope with that combiantion of persentages.
    Any idea?
    Sorry 'bout the long overddue reply.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Spread of the percentage

    This proposal employs four helper columns which may be moved and/or hidden for aesthetic purposes.
    1. Cell AL10 is populated using: =MATCH(MODE.SNGL(AD10:AF10),AD10:AF10,0)
    2. Cells AM10:AO10 are populated using: =IFERROR(IF($AL10=COLUMNS($AM10:AM10),SUM(AD10,1),AD10),AD10)
    3. Cells AD10:AF10 are populated using: =IF($A10="","",IF(COUNTA(B10,F10,J10,N10,R10,V10,Z10)=0,1,COUNTA(B10,F10,J10,N10,R10,V10,Z10)))
    4. Cells AH10:AJ10 are populated using: =ROUND(AM10/SUM($AM10:$AO10),1)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  12. #12
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: Spread of the percentage

    Hi ...

    This seems like a good solution, but when changing AF14 to a zero, the result in cell AJ14 is 0%, even though it should never be less than 10%.

    Attachment 782558

    Tresfjording
    Last edited by Tresfjording; 06-01-2022 at 04:25 PM.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Spread of the percentage

    Try modifying the formula in AM10:AO10 so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    By the way, selecting attachment 782558 results in the following message: "Invalid Attachment specified. If you followed a valid link, please notify the administrator"
    In the future please utilize the information in the banner at the top of the page to attach and Excel file.
    Let us know if you have any questions.

+ 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. Replies: 1
    Last Post: 09-20-2016, 07:33 PM
  2. Match/merge and deduplication of records spread across multiple spread sheets
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2016, 11:18 AM
  3. Replies: 0
    Last Post: 01-19-2015, 03:31 PM
  4. Replies: 3
    Last Post: 04-19-2014, 06:10 PM
  5. Replies: 2
    Last Post: 06-13-2012, 06:51 PM
  6. Replies: 1
    Last Post: 06-13-2012, 05:53 PM
  7. Replies: 2
    Last Post: 02-01-2006, 12:50 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