本帖最后由 看见星光 于 2014-9-14 15:17 编辑
先占个坑,第一次参赛,好歹看看能不能混一分。。。
用辅助列的公式,E14下拉:- =OFFSET(A$10,,MATCH(D14,LARGE(IF(FREQUENCY(IF($B$14:$B$31=B14,$D$14:$D$31),$D$14:$D$31),$D$14:$D$31),ROW($1:$6)),))
复制代码 结果公式:- =SUMIF($C$14:$D$31,G24,$E$14)
复制代码 不用辅助列的公式。。不管对错投了吧,真该好好学习天天向上了,不该瞎折腾。
(245):
- =SUM(OFFSET(A$10,,INDEX(FREQUENCY(IF(MATCH(B$14:B$31&D$14:D$31,B$14:B$31&D$14:D$31,)=A$14:A$31,MATCH(B$14:B$31,B$14:B$31,)/1%%+D$14:D$31),SMALL(IF(C$14:C$31=G24,MATCH(B$14:B$31,B$14:B$31,)/1%%+D$14:D$31),{1;2;3})-{500,0})+1,N(IF({1},{3;5;7})))))
复制代码 奇怪,为什么有的版本OFFSET不套N可以用SUM求和,有的必须用。我本来以为里面使用了***,所以不用再加N了,但测试有的版本还是有问题。那加上,247:- =SUM(N(OFFSET(A$10,,INDEX(FREQUENCY(IF(MATCH(B$14:B$31&D$14:D$31,B$14:B$31&D$14:D$31,)=A$14:A$31,MATCH(B$14:B$31,B$14:B$31,)/1%%+D$14:D$31),SMALL(IF(C$14:C$31=G24,MATCH(B$14:B$31,B$14:B$31,)/1%%+D$14:D$31),{1;2;3})-{500,0})+1,N(IF({1},{3;5;7}))))))
复制代码
再简一下~209(取巧啦,这么多机关,应该是允许这样操作的吧,如果不允许,那还是按上面的为准吧,嘻嘻):- =SUM(OFFSET(A$10,,INDEX(FREQUENCY(IF(MATCH(B$14:B$31&D$14:D$31,B$14:B$31&D$14:D$31,)=A$14:A$31,B$14:B$31/1%%+D$14:D$31),SMALL(IF(C$14:C$31=G24,B$14:B$31/1%%+D$14:D$31),{1;2;3})-{500,0})+1,N(IF({1},{3;5;7})))))
复制代码
|