Can I get some help for writing a macro for calculating PERCENTILE. The data set will always be in one column but the number of rows will be changing.
I can give an example for the calculation
Data Set Count
10 1
20 2
30 3
40 4
50 5
Lets caluclate the 70th median percentile
O = (1+0.7(5-1)) = 3.8
So the 70th Percentile lies between 3rd and 4th record
70th Percentile = (30 + .8*(30+40))
I would like to calculate the 70th percentile using excel macro the number of records is not constant.
Appreciate help
Thanks
NSSAJITH
I can give an example for the calculation
Data Set Count
10 1
20 2
30 3
40 4
50 5
Lets caluclate the 70th median percentile
O = (1+0.7(5-1)) = 3.8
So the 70th Percentile lies between 3rd and 4th record
70th Percentile = (30 + .8*(30+40))
I would like to calculate the 70th percentile using excel macro the number of records is not constant.
Appreciate help
Thanks
NSSAJITH