本帖最后由 weiguidun 于 2024-9-9 14:07 编辑
我写的也不对,你这个需要匹配的东西有点多,并且钢网前后都有合并单元格这种匹配起来很复杂
这个是只匹配料号和机型的
- =ROUND(F5/XLOOKUP(VLOOKUP("座",$A$3:$A5,1,TRUE)&$D4,UPH!$A:$A&UPH!$B:$B,IFS(IFERROR(FIND(LEFT($E5,4),"S601,S607,S609"),0),UPH!$G:$G,IFERROR(FIND(LEFT($E5,4),"S602,S604,S605,S611"),0),UPH!$I:$I,IFERROR(FIND(LEFT($E5,4),"S603,S606,S608,S610"),0),INDEX(UPH!$K:$Q,,ROUNDDOWN(IFERROR(FIND(LEFT($E5,4),"S603,S606,S608,S610"),0)/5*2+1,0))),0),2)
复制代码
如果要匹配钢网和钢网显示,那我建议先取消UPH表的S列的合并
- =ROUND(F5/XLOOKUP(VLOOKUP("座",$A$3:$A5,1,TRUE)&VLOOKUP("座",$B$3:$B5,1,TRUE)&VLOOKUP("座",$C$3:$C5,1,TRUE)&$D4,UPH!$A:$A&UPH!$S:$S&UPH!$T:$T&"*"&UPH!$S:$S&UPH!$B:$B,IFS(IFERROR(FIND(LEFT($E5,4),"S601,S607,S609"),0),UPH!$G:$G,IFERROR(FIND(LEFT($E5,4),"S602,S604,S605,S611"),0),UPH!$I:$I,IFERROR(FIND(LEFT($E5,4),"S603,S606,S608,S610"),0),INDEX(UPH!$K:$Q,,ROUNDDOWN(IFERROR(FIND(LEFT($E5,4),"S603,S606,S608,S610"),0)/5*2+1,0))),0),2)
复制代码
|