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>
 
Possibly - I tried adding a blank line and got an error in the Rank column on that line, but the other ranks didn't change. Maybe try wrapping the rank.eq() with iferror() like this:

=IF(IFERROR(RANK.EQ($B2,$B$2:$B$9),0)<=COUNTIF($B$2:$B$9,">"&PERCENTILE.INC($B$2:$B$9,75%))+1,IFERROR(RANK.EQ($B2,$B$2:$B$9),""),"")
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hey, So sorry to disturb you again, but i have understood the problem.

AS it takes value "0" as well, it shows more rank which contribute to 75% of sales.
Is it possible to avoid cells which have their value as 0?

1786865
71045577
124426.6
1134609744
68631788
190439.6
3840394
246050.5
1656357022
-5026.48
105562.4
1721111611
5245846
1501313633
6052145
3218168
1061932155
819817166
0
0
0
0
0
0
0
0
0

<tbody>
</tbody>

Thank you so much for all the help and sorry for the trouble.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,581
Members
449,174
Latest member
chandan4057

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