大体小结一下,第一个一剑的公式对教同一个班的会出现查找的错误(看来vl函数不能准确查找多值的),后两个公式是正确的。第三个大头的公式字符最少。
=VLOOKUP(MIN(IF($A$3:$A$8&OFFSET($A$3:$A$8,,M3)=TRANSPOSE($K$3:$K$8&$L$3:$L$8),$A$3:$A$8)),IF({1,0},--(0&$K$3:$K$8),$K$3:$K$8&$L$3:$L$8),2,)
=INDEX($A$3:$A$9&OFFSET($A$3:$A$9,,M3),MIN(IF($A$3:$A$8&OFFSET($A$3:$A$8,,M3)=TRANSPOSE($K$3:$K$7&$L$3:$L$7),$A$3:$A$8,7)))
=INDEX(A$3:A$9&INDEX(B$3:I$9,,M3),MIN(IF(ISNA(MATCH(A$3:A$8&INDEX(B$3:I$8,,M3),K$3:K$7&L$3:L$7,)),7,ROW($1:$6))))
查找班级节次.rar
(5.71 KB, 下载次数: 44)
[ 本帖最后由 lhx120824 于 2010-8-1 15:22 编辑 ] |