本帖最后由 悟空师弟 于 2011-10-8 11:04 编辑
弄个223的:
=SUM((MOD(SMALL(LEN(SUBSTITUTE(LEFT(MMULT(RIGHT(A1:I9)*10^COLUMN(B:J),ROW(1:9)^0),9),RIGHT(A1:I9),))+ROW(1:9)/1%,ROW(1:9)*9-8),10)=LEN(SUBSTITUTE(LEFT(MMULT(RIGHT(A1:I9)*10^COLUMN(B:J),ROW(1:9)^0),9),RIGHT(A1:I9),)))*A1:I9)
还有个209的,但不通用,不知是否能通过:
=SUM((MOD(SMALL(LEN(SUBSTITUTE(MMULT(RIGHT(A1:I9)*10^COLUMN(B:J),ROW(1:9)^0)%,RIGHT(A1:I9),))+ROW(1:9)/1%,ROW(1:9)*9-8),10)=LEN(SUBSTITUTE(MMULT(RIGHT(A1:I9)*10^COLUMN(B:J),ROW(1:9)^0)%,RIGHT(A1:I9),)))*A1:I9)
交了先,得空再看能不能简化。
2011-10-8 19:55 简化后公式(197字符):
=SUM((MOD(SMALL(INT(ROW(10:100)/10)*10+FREQUENCY(ROW(1:9)*10+RIGHT(A1:I9),ROW(10:99)),ROW(1:9)*10),10)=9-LEN(SUBSTITUTE(LEFT(MMULT(RIGHT(A1:I9)*10^COLUMN(B:J),ROW(1:9)^0),9),RIGHT(A1:I9),)))*A1:I9)
2011-10-8 11:03简化后公式(183字符):
=SUM((MOD(SMALL(FLOOR(ROW(1:91)-1,10)+FREQUENCY(ROW(1:9)*10+RIGHT(A1:I9),ROW(10:99)),ROW(1:9)*10),10)=9-LEN(SUBSTITUTE(LEFT(MMULT(MOD(A1:I9,10),10^ROW(1:9)),9),RIGHT(A1:I9),)))*A1:I9)
|