求助多条件匹配
根据款号及数量匹配原单价,麻烦大佬了。=LOOKUP(1,0/(($H$2:$H$9=A2)*(LEFT($I$2:$I$9,FIND("-",$I$2:$I$9,1)-1)*1<=B2)*(RIGHT($I$2:$I$9,LEN($I$2:$I$9)-FIND("-",$I$2:$I$9,1))*1>B2)),$J$2:$J$9)
=LOOKUP(1,0/((H$2:H$9=A2)*(ABS(MMULT(SIGN(B2-MID(I$2:I$9,1+FIND("-",I$2:I$9)*{0,1},FIND("-",I$2:I$9)-{1,-9})),{1;1}))<2)),J$2:J$9) =LOOKUP(1,0/(ISERR(FIND("-",IMSUB(B2&-B2&"i",$I$2:$I$9&"i")))*(A2=$H$2:$H$9)),$J$2:$J$9)
你的区间临界点感觉有问题,公式也没细考虑 D2=LOOKUP(1,0/(B2-LEFT(I$2:I$9,FIND("-",I$2:I$9)-1)>=0)/(H$2:H$9=A2),J$2:J$9) =SUMPRODUCT(($H$2:$H$9=A2)*((B2-LEFT($I$2:$I$9,3))>0)*(B2-MID($I$2:$I$9,FIND("-",$I$2:$I$9)+1,4)<0),$J$2:$J$9)
页:
[1]