+ Reply to Thread
Results 1 to 7 of 7

Thread: Find row number of column when it reaches 80% of total

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    colorado, usa
    MS-Off Ver
    Excel 2010
    Posts
    41

    Find row number of column when it reaches 80% of total

    Hi all,

    i have a column that has gross charges in it and i'm trying to write a formula to show me the row number that is equal to eighty percent of the total column when adding from top to bottom. The values are sorted in descending order. Basically i'm trying to use pareto principle on this column.

    Thanks
    FORMULA CHECK.xlsx
    Last edited by bryanbak3; 01-10-2012 at 03:43 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Find row number of column when it reaches 80% of total

    43,000+rows is quite hefty for this type of calculation:

    Try:

    =MATCH(TRUE,SUBTOTAL(9,(INDIRECT(TRANSPOSE("A2:"&ADDRESS(ROW(INDIRECT("1:43127")),1)))))>=SUM($A$2:$ A$43127)*0.8,0)

    confirmed with CTRL+SHIFT+ENTER not just ENTER.

    It may take a little time to process....

    I found even using a helper column to cumulatively sum column A was slow....
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Find row number of column when it reaches 80% of total

    With CTRL+SHIFT+ENTER, rather than just ENTER

    =MATCH(SUM(A:A)*80%,SUMIF(OFFSET(A1,,,ROW(A1:A43126)-ROW(A1)+1),"<9E300"))+1
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  4. #4
    Registered User
    Join Date
    01-10-2012
    Location
    colorado, usa
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Find row number of column when it reaches 80% of total

    Thanks so much this seems to work, albeit slowly!

  5. #5
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Find row number of column when it reaches 80% of total

    To get speed up. Use a helper column like,

    in B2 enter =A2, then in b3: =A3+B2 then copy down.

    Then use.

    =MATCH(LOOKUP(9E300,B:B)*80%,B:B)+1
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  6. #6
    Registered User
    Join Date
    01-10-2012
    Location
    colorado, usa
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Find row number of column when it reaches 80% of total

    Ok, what does the 9e300 stand for?

  7. #7
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Find row number of column when it reaches 80% of total

    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0