- UID
- 222277
- 帖子
- 252
- 主题
- 55
- 注册时间
- 2011-7-2
- 最后登录
- 2016-4-18
|
5#
发表于 2011-10-5 09:58
| 只看该作者
Use something besides excel.
If that's not acceptable, you could do something like this:
1) Create a new sheet just for the decile information
2) First column put 1 through 10, for each decile
3) You need to count the number of real entries in each column and then calculate the edges of each decile, so for the first one and decile 1, it would be something like, in cell B1, =small(sheet1!A:A,COUNT(A:A)*$A1/10)
4) after you copy this over, create another sheet (not really necessary), you can put in the 1-10, but not needed
5) in cell B1 (if you have the 1-10 in), type =sumif(sheet1!A:A,"<="&sheet2:B1)
for B2, you could need to do the same thing but subtract what is above
6) You need another sheet to do a similar calculation but for the counts, (replace sumif with countif)
7) Divide the sums from the counts. You might be able to simplify this so you just need one averageif, but I can't say for sure since I don't recall if the logical arguments work with more than one statement.
Should come out to what you want. |
|