How do you calculate the Quintile for every row in Excel?

我怕爱的太早我们不能终老 提交于 2019-12-05 10:52:10

Your suggested formula works for me......but I think there are several ways you could do this, e.g. use PERCENTILE function to get the breakpoints and then match against those with MATCH, i.e.

=MATCH(A1,PERCENTILE(A$1:A$131,{5,4,3,2,1}/5),-1)

In most cases that gives the same results as your formula but there might be some discrepancies around the boundaries

I liked the simplicity of =MATCH(A1,PERCENTILE(A$1:A$131,{5,4,3,2,1}/5),-1). I compared the results with a two step manual process that included: 1) calculate 4 percentiles for .2, .4. .6 .8 and 2) a combination of nested IF statements and ended up with the same result as =Match recommended formula in a same of 250 values.

I.E. STEP 1:

=PERCENTILE.INC($J$3:$J$257,0.2) -> Adjust 0.2 to 0.4; 0.6; 0.8 accordingly

STEP 2:

=IF(J3<=$AB$3,5,
 IF(J3<=$AB$4,4,
 IF(J3<=$AB$5,3,
 IF(J3<=$AB$6,2,
 1))))

Compare each value to the calculated =PERCENTILE.INC in STEP 1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!