本帖最后由 丢丢表格 于 2014-9-14 21:28 编辑
先做一个 201 字的
H24=SUM(N(OFFSET(B$10,,MOD(MATCH(LARGE(IF($C$14:$C$31=G24,B$14:B$31*100+D$14:D$31),{1,2,3}),LARGE($B$14:$B$31*100+(MATCH(B$14:B$31&D$14:D$31,B$14:B$31&D$14:D$31,)=A$14:A$31)*D$14:D$31,A$14:A$31),)-1,6))))
H24:H29=MMULT(N(OFFSET(B10,,MOD(MATCH(MOD(-LARGE(-(CODE(C14:C31)&B14:B31&D14:D31),ROW(1:6)*3-{2,1,0}),1000),LARGE((MATCH(B14:B31&D14:D31,B14:B31&D14:D31,)=A14:A31)*D14:D31+B14:B31/1%,A14:A31),)-1,6))),{1;1;1})
202 字
用 CODE 是不严谨的, 不知楼主是否可用?
不用 CODE 的
H24:H29=MMULT(N(OFFSET(B10,,MOD(MATCH(MOD(-LARGE(-(MATCH(C14:C31,G24:G29,)&B14:B31&D14:D31),ROW(1:6)*3-{2,1,0}),1000),LARGE((MATCH(B14:B31&D14:D31,B14:B31&D14:D31,)=A14:A31)*D14:D31+B14:B31/1%,A14:A31),)-1,6))),{1;1;1})
212 字
补充内容 (2014-10-5 11:03):
=MMULT(N(OFFSET(B10,,MOD(MATCH(MOD(SMALL(MATCH(C14:C31,G24:G29,)*10^5+B14:B31*10^3+D14:D31,A14:A19*3-{2,1,0}),10^5),LARGE((MATCH(B14:B31&D14:D31,B14:B31&D14:D31,)=A14:A31)*D14:D31+B14:B31*10^3,A14:A31
补充内容 (2014-10-5 11:04):
=MMULT(N(OFFSET(B10,,MOD(MATCH(MOD(SMALL(MATCH(C14:C31,G24:G29,)*10^5+B14:B31*10^3+D14:D31,A14:A19*3-{2,1,0}),10^5),LARGE((MATCH(B14:B31&D14:D31,B14:B31&D14:D31,)=A14:A31)*D14:D31+B14:B31*10^3,A14:A31),)-1,6))),{1;1;1}) |