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.
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.
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
Thanks so much this seems to work, albeit slowly!
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
Ok, what does the 9e300 stand for?
See this link,
http://www.excelforum.com/excel-2007...-refer-to.html
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks