前三位数分等级
要求:编号前三位数取等级编号前三位数取等级 ,有什么方法解决 =LOOKUP(,0/FREQUENCY(--LEFT(G2,3),--RIGHT(A$2:A$31,3)),B$2:B$3) 你这个模拟是不是有问题?006-007是45,但是005为什么也是45呢? =LOOKUP(,0/((--LEFT(G2,3)>=(--TRIM(MID(SUBSTITUTE($A$2:$A$31&"-"&$A$2:$A$31,"-",REPT(" ",20)),1,20))))*(--LEFT(G2,3)<=(--TRIM(MID(SUBSTITUTE($A$2:$A$31&"-"&$A$2:$A$31,"-",REPT(" ",20)),21,20))))),$B$2:$B$31)
先给个粗暴的答案吧,因为005不在006-007区间内,所以返回错误 =LOOKUP(1,0/(ABS(MMULT(SIGN(LEFT(G2,3)-TRIM(MID(SUBSTITUTE(A$2:A$31&"-"&A$2:A$31,"-",REPT(" ",50)),{1,51},50))),{1;1}))<2),B$2:B$31) 这样行不?
=LOOKUP(1,0/(LEFT($A$2:$A$31,3)=LEFT(G2,3)),$B$2:$B$31)
页:
[1]