Conditional Percentiles using the Small function, not percentile array function

SaraB802

New Member
Joined
Feb 7, 2013
Messages
34
So here is the background to the problem - I have spreadsheet of 19000+ rows of data, multiple calculations including 4 percentile calculations, and obviously excel can't cope. So I have replaced the percentile formulas with SMALL:

=SMALL(M:M,CEILING(Q1*COUNTA(Sheet1!M:M),1))

Cell Q1 has the value 0.85 in it.

The spreadsheet is now working, but the percentiles are for all the AM, not per AM. Here is some sample data.

DTSYS8CUNOCUNMDIVISLMN01SLMN02SLMN03SLMN04IDCD01Ind codeAMStatusOpen OpportunitiesOpps Percentile
2009121001343AlphaG99502800280995Active500002500000
2011040713909BravoG52902000200529Dormant250002500000
2011062914000CharlieG52902000200529Active750002500000
2011081801443DeltaG52902800280529Dormant30002500000
20130712014730EchoG529C70C70529Dormant900002500000
20130716FoxtrotG19307400740193Prospect25000002500000
20130716GolfG22202000200222Prospect50002500000

<colgroup><col width="64" span="14" style="width:48pt"> </colgroup><tbody>
</tbody>

So I want the opps percentile per AM, as you can see it currently shows 2500000, which is for the whole, but what I am after is on an AM. For example for AM 529 the formula should only consider the values 25000, 750000, 3000, 90000, giving a result of 9000.

If anyone can help that would be truly amazing and you would be saving my hair from going grey and my sanity!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If I understand correctly what you want, maybe this array formula (use Ctrl+Shift+Enter and not only Enter) can help you:

Code:
=SMALL(IF($K$2:$K$8=K2,$M$2:$M$8),CEILING(0.85*SUMPRODUCT(--($K$2:$K$8=K2)),1))

Result:
DTSYS8
CUNO
CUNM
DIVI
SLMN01
SLMN02
SLMN03
SLMN04
IDCD01
Ind code
AM
Status
Open Opportunities
Opps Percentile
20091210
1343
Alpha
G
995
280
280
995
Active
50000
50000
20110407
13909
Bravo
G
529
200
200
529
Dormant
25000
90000
20110629
14000
Charlie
G
529
200
200
529
Active
75000
90000
20110818
1443
Delta
G
529
280
280
529
Dormant
3000
90000
20130712
14730
Echo
G
529
C70
C70
529
Dormant
90000
90000
20130716
Foxtrot
G
193
740
740
193
Prospect
2500000
2500000
20130716
Golf
G
222
200
200
222
Prospect
5000
5000
************
******
******
******
********
********
********
********
*******
*********
******
*********
*************
***********

<tbody>
</tbody>

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,452
Messages
6,124,914
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top