- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¦^´_ 14# jcchiang
¤£¦n·N«ä,§Ú¦b¼g¤½¦¡¥N¤J®É,¦]¬°¤½¦¡«Üªø,¤@ª½¥X²{¬õ¦r,¬O§_»Ýn´«¦æ?§Ú¸ÕµÛ´«¦æ,¦ý¤½¦¡«ç»ò¤Á³£¤£¦æ,½Ð±Ð³o»òªøªº¤½¦¡n«ç»ò´«¦æ¤~¥i¥H?- With W.Sheets("Àu")
- W.Sheets("Àu").Activate
- Range("B15:AI19").ClearContents
- i = "B15:AI15"
- xcol = W.Sheets("Àu").Range(i).Columns.Count
- .Range("B15").Resize(1, xcol).Value = "=" & "VLOOKUP(B$2,¸¤ñ!$F:$FO,COUNTA(¸¤ñ!$F$3:$FO$3),)"
- .Range("B15").Resize(1, xcol).Value = .Range("B15").Resize(1, xcol).Value
- .Range("B16").Resize(1, xcol).Value = "=" & "IF(B$2="","",SUMIF(¸¤ñ!$F:$F,B$2,¸¤ñ!$FT:$FT)+1)"
- .Range("B16").Resize(1, xcol).Value = .Range("B16").Resize(1, xcol).Value
- .Range("B17").Resize(1, xcol).Value = "=" & "IF(B14-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$B$4:$B$55))>=0,"",ABS(B14-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$B$4:$B$55))))"
- .Range("B17").Resize(1, xcol).Value = .Range("B17").Resize(1, xcol).Value
- .Range("B18").Resize(1, xcol).Value = "=" & "IF(B$9*SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$BJ$3:$CB$3="¦w")*(¸¤ñ!$BJ$4:$CB$55))>=0,"OK",INT(B$9*SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$BJ$3:$CB$3="¦w")*(¸¤ñ!$BJ$4:$CB$55))/SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))))"
- .Range("B18").Resize(1, xcol).Value = .Range("B18").Resize(1, xcol).Value
- .Range("B19").Resize(1, xcol).Value = "=" & "IF(B$14*SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$BI$4:$BI$55))>=0,"OK",INT(B$14*SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))-SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$BI$4:$BI$55))/SUMPRODUCT((¸¤ñ!$F$4:$F$55=B$2)*(¸¤ñ!$G$4:$G$55))))"
- .Range("B19").Resize(1, xcol).Value = .Range("B19").Resize(1, xcol).Value
- End With
½Æ»s¥N½X |
|