- =((COUNTIFS(三审三校工作台账!$K:$K,LEFT(C$3,2)&"*",三审三校工作台账!$B:$B,">=2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",三审三校工作台账!$B:$B,"<="&EOMONTH("2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",0),三审三校工作台账!$D:$D,"*"&$B4&"*")-COUNTIFS(三审三校工作台账!$K:$K,LEFT(C$3,2)&"*",三审三校工作台账!$B:$B,">=2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",三审三校工作台账!$B:$B,"<="&EOMONTH("2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",0),三审三校工作台账!$D:$D,$B4))/2+COUNTIFS(三审三校工作台账!$K:$K,LEFT(C$3,2)&"*",三审三校工作台账!$B:$B,">=2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",三审三校工作台账!$B:$B,"<="&EOMONTH("2023/"&LEFTB(LOOKUP(1,0/($C$2:C$2<>""),$C$2:C$2),2)&"/1",0),三审三校工作台账!$D:$D,$B4))*IF(LEFT(C$3,2)="公司",20,30)
复制代码
|