Percentile Function of excel

dali1962

New Member
Joined
Jun 7, 2017
Messages
42
I have a list of sales data.

I want to list the names which contribute to 75% of all total sales.

how do I do that? is it possible to do it with percentile function??

Or just rank the names which contribute up till 75% of sales. highest contributing SKU will be ranked as 1st and so on. the last 25% percent do not need to be ranked.

is it possible to do so only with formulas and not macros?

Please help
NameSales
A3405
B4893
C7920
D4682
E3082
F9283
G1038
TotalXX

<tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If you have your table in range ("A1:B9") then you could just drag the following formula in range ("C2:C8"):

<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'} span.s1 {color: #0057d6} span.s2 {color: #006107} </style>=IF(B2>PERCENTILE(B$2:B$8,75%),RANK.EQ($B2,$B$2:$B$8),"")

The 75% percentile in this case is 6,407, which is a midpoint between the second ranked value C - 7,920 and the third one B - 4,893. So you will have only two values ranked - F and C and the rest will have blanks next to them in column C.
 
Upvote 0
i guess its a little bit more tricky than this.
NameSalesPercentSalesRank
A340510%
B489314%3
C792023%2
D468214%
E30829%
F928327%1
G10383%
Total34303

<tbody>
</tbody>
As the highest selling products are F, C and B which contribute to approx 75% of total sales, i only want to rank them and ignore the rest. If i add D as well, it will contribute to 78% sales but i want the products which contribute only uptill 75% of sales.

Please help
 
Upvote 0
I think this should solve it:

=IF(RANK.EQ($B2,$B$2:$B$8)<=COUNTIF($B$2:$B$8,">"&PERCENTILE.INC($B$2:$B$8,75%))+1,RANK.EQ($B2,$B$2:$B$8),"")
 
Upvote 0
Hey, I'm using this formula, but it is showing error :(

=IF(RANK.EQ(Sheet1!$D2,Sheet1!$J$2:$J$150)<=COUNTIF(Sheet1!$J$2:$J$150,">"&PERCENTILE.INC(Sheet1!$J$2:$J$150,75%))+1,RANK.EQ(Sheet1!$J2,Sheet1!$J$2:$J$150),"")
 
Upvote 0
Hey, Sorry, the formula is working but it is ranking almost all the sales SKU and not only those which contribute to 75% of sales.
 
Upvote 0
I suppose it's because of this (should be column J, not D):

=IF(RANK.EQ(Sheet1!$D2,Sheet1!$J$2:$J$150)<=COUNTIF(Sheet1!$J$2:$J$150,">"&PERCENTILE.INC(Sheet1!$J$2:$J$150,75%))+1,RANK.EQ(Sheet1!$J2,Sheet1!$J$2:$J$150),"")
 
Upvote 0
It has got copy pasted wrongly.. i have used "J" itslef and not "D"

=IF(RANK.EQ(Sheet1!$J2,Sheet1!$J$2:$J$150)<=COUNTIF(Sheet1!$J$2:$J$150,">"&PERCENTILE.INC(Sheet1!$J$2:$J$150,75%))+1,RANK.EQ(Sheet1!$J2,Sheet1!$J$2:$J$150),"")
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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