Determine which percentile value falls into?

parodytx

New Member
Joined
Feb 17, 2008
Messages
23
I have a large column of data sorted into sectors of varying lengths. I would like assistance in crafting the VBA formula(e) which determine into which percentile the individual datum lies.
For example,

<CODE>Sector Value Percentile
A 1.024% ?
A 3.027% ?
A 4.487% top 33%
B 0.060% ?
B 0.598% ?
B 0.643% top 25%
B 0.160% ?
C 2.927% top 100%</CODE>
In Sector A, 4.487% is in the top 33% (as there are only 3 values), 0.643% in Sector B is in the top 25% and C would be 100% as there is only one value.

I am using Excel 2010 Windows 7 32 bit.

Thanks in advance for any help.</PRE>
 
Last edited:

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.
Hello,

this worked for me,

You need to custom sort on your "Sector" then on your "Value" A to Z , Smallest to largest respectively.

[TABLE="width: 737"]
<TBODY>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]IF(A1<>A2,A1,"")</SPAN>
[/TD]
[TD]IF(A1<>A2,"top "& TEXT(1/ COUNTIF($A$3:$A$10,A1),"0.00%"),"")</SPAN>
[/TD]
[/TR]
[TR]
[TD]Sector</SPAN>
[/TD]
[TD]Value</SPAN>
[/TD]
[TD]Percentile</SPAN>
[/TD]
[TD]Max Value</SPAN>
[/TD]
[TD]Percentile</SPAN>
[/TD]
[/TR]
[TR]
[TD]A</SPAN>
[/TD]
[TD]1.02%</SPAN>
[/TD]
[TD]?</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A</SPAN>
[/TD]
[TD]3.03%</SPAN>
[/TD]
[TD]?</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A</SPAN>
[/TD]
[TD]4.49%</SPAN>
[/TD]
[TD]top 33%</SPAN>
[/TD]
[TD]4.49%</SPAN>
[/TD]
[TD]top 33.33%</SPAN>
[/TD]
[/TR]
[TR]
[TD]B</SPAN>
[/TD]
[TD]0.06%</SPAN>
[/TD]
[TD]?</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B</SPAN>
[/TD]
[TD]0.16%</SPAN>
[/TD]
[TD]?</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B</SPAN>
[/TD]
[TD]0.60%</SPAN>
[/TD]
[TD]?</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B</SPAN>
[/TD]
[TD]0.64%</SPAN>
[/TD]
[TD]top 25%</SPAN>
[/TD]
[TD]0.64%</SPAN>
[/TD]
[TD]top 25.00%</SPAN>
[/TD]
[/TR]
[TR]
[TD]C</SPAN>
[/TD]
[TD]2.93%</SPAN>
[/TD]
[TD]top 100%</SPAN>
[/TD]
[TD]2.93%</SPAN>
[/TD]
[TD]top 100.00%</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]


let me know if this is what you where looking for.

Yaz
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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