+ Reply to Thread
Results 1 to 5 of 5

How to sum unsorted number that meets cumulative percentage criteria

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    2010
    Posts
    6

    How to sum unsorted number that meets cumulative percentage criteria

    Dear Gentlemen,

    Could you please help me to adjust below formula to return the sum of value which represent more than 50% rather than the count of rows.


    Quote Originally Posted by Domenic View Post
    Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER...

    =MATCH(TRUE,MMULT((ROW(E5:E19)>=TRANSPOSE(ROW(E5:E19)))+0,LARGE(E5:E19,ROW(INDIRECT("1:"&ROWS(E5:E19)))))/SUM(E5:E19)>=50%,0)

    Hope this helps!

    Example:
    Data from largest to smallest:

    330
    295
    260
    260
    255
    235
    195
    170
    160
    155
    140
    135
    135
    110
    105

    Cummulative data:

    330
    625
    885
    1145
    1400
    1635
    1830
    2000
    2160
    2315
    2455
    2590
    2725
    2835
    2940

    Cumulative percentage:

    0.112
    0.213
    0.301
    0.389
    0.476
    0.556
    0.622
    0.680
    0.735
    0.787
    0.835
    0.881
    0.927
    0.964
    1.000

    Therefore, the 50% threshold is reached at the 6th row with 0.556. I want the formula to return the sum which is 1,635.

    Thanks again.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum unsorted number that meets cumulative percentage criteria

    Here's one way

    =SUM(INDIRECT("A1:A"&MATCH(SUM(A1:A15)/2,MMULT(IF(ROW(A1:A15)>=TRANSPOSE(ROW(A1:A15))=TRUE,1,0),A1:A15))+1))/SUM(A1:A15)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    2010
    Posts
    6

    Re: How to sum unsorted number that meets cumulative percentage criteria

    Quote Originally Posted by Richard Buttrey View Post
    Here's one way

    =SUM(INDIRECT("A1:A"&MATCH(SUM(A1:A15)/2,MMULT(IF(ROW(A1:A15)>=TRANSPOSE(ROW(A1:A15))=TRUE,1,0),A1:A15))+1))/SUM(A1:A15)


    Hi Richard

    Thank a lot its seems its return the sum of the cumulative percentage but I need the cumulative number data which is 1,635. Please note that my data is not sorted.

    Also could you please mention where can I increase the 50% for example if I want to make 80%


    Thanks again.
    Last edited by Moatasem91; 06-15-2021 at 07:03 AM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum unsorted number that meets cumulative percentage criteria

    Quote Originally Posted by Moatasem91 View Post
    Hi Richard

    Thank a lot its seems its return the sum of the cumulative percentage but I need the cumulative number data which is 1,635. Please note that my data is not sorted.

    Also could you please mention where can I increase the 50% for example if I want to make 80%


    Thanks again.
    Hi,

    Just leave off the

    /SUM(A1:A15) at the end.

    For a different % put the % in say C1 and use

    =SUM(INDIRECT("A1:A"&MATCH(SUM(A1:A15)*C1,MMULT(IF(ROW(A1:A15)>=TRANSPOSE(ROW(A1:A15))=TRUE,1,0),A1:A15))+1))

  5. #5
    Registered User
    Join Date
    06-14-2021
    Location
    London
    MS-Off Ver
    2010
    Posts
    6

    Re: How to sum unsorted number that meets cumulative percentage criteria

    Thanks a lot ! you are amazing !

    Just remaining the sort as if I not sorted manually from highest to lowest it will give me 660 while I want the highest value 150+140+130+120+110 = 650 (highest 50%)

    10 0.83% 50%
    20 1.67%
    30 2.50%
    40 3.33%
    50 4.17%
    60 5.00%
    70 5.83%
    80 6.67%
    90 7.50%
    100 8.33%
    110 9.17%
    120 10.00%
    130 10.83%
    140 11.67%
    150 12.50%
    1200 100.00%
    Last edited by Moatasem91; 06-15-2021 at 11:21 AM.

+ 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. How to find number of rows that meets cumulative percentage critieria
    By Geoshadow in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-15-2021, 12:12 AM
  2. [SOLVED] Calculate a percentage when row cell meets criteria..
    By DigitalWavez in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2014, 08:24 AM
  3. [SOLVED] Add letter to a number if it meets certain criteria
    By luvs2read in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2013, 08:41 AM
  4. count the number of occurrences when value meets 3 x criteria
    By tiggi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-26-2013, 03:12 PM
  5. [SOLVED] Picking up a number which meets the criteria from another column
    By khank in forum Excel General
    Replies: 3
    Last Post: 11-11-2012, 01:04 PM
  6. [SOLVED] Count the occurance of a number or text in a range that meets other criteria
    By kaneohe247 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 12:51 PM
  7. finding the first number in list that meets criteria
    By robert111 in forum Excel General
    Replies: 4
    Last Post: 02-20-2009, 12:05 PM
  8. how can i count a number that meets a criteria?
    By oakm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2005, 03:07 AM

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