- ©«¤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
|
¦^´_ 44# ã´£³¡ªL
ã¤j¦n,
§Ú±Nµ{¦¡¥uµy§@קï,®M¥Î¨ìFÄæ,¦ý¨C¦¸°õ¦æµ{¦¡,F2³£·|³Q²M°£,¸Õ¤F¦h¦¸,¨ÌµM§ä¤£¨ìì¦],¤£©ú¥Õ¬°¤°»ò¦P¤@µ{¦¡·|¦³¤£¦Pµ²ªG?
µ{¦¡¦p¤U¡G- Sub ¼t¯Ê¸ü¤J()
- Dim Rw&, xR As Range, xH As Range, C%, Fx$
- Workbooks("²z³f³æII.xlsx").Sheets("BF²z³f").Activate
- Rw = Cells(Rows.Count, "K").End(xlUp).Row
- If Rw <= 2 Then Exit Sub
- [F2] = "=IF(SUMPRODUCT(([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$3:$CB$3=$B2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$F$4:$F$64=$L2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$4:$CB$64))=0,"""",IF(SUMPRODUCT(([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$3:$CB$3=$B2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$F$4:$F$64=$L2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$4:$CB$64))=$Q2,""¼t¯Ê"",""¯Ê""&SUMPRODUCT(([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$3:$CB$3=$B2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$F$4:$F$64=$L2)*([³Ì·s®w¦s.xlsx]¸¤ñ!$BJ$4:$CB$64))))"
- For Each xR In Range("K2:K" & Rw)
- If xR = "«~¦W" Then Set xH = xR(2, -4): C = 1: GoTo 101
- If xR = "¦Xp" Then
- If C = 0 Then GoTo 101
- With Range(xH, xR(0, -4)) 'FÄæ¶ñ¤J¤½¦¡
- .FormulaR1C1 = [F2].FormulaR1C1
- .Value = .Value
- .Replace 0, "", 1 '*****(1,§¹¥þ²Å¦X)
- End With
- C = 0
- End If
- 101: Next
- [F2] = ""
- End Sub
½Æ»s¥N½X
¼t¯Ê¸ü¤J.rar (331.79 KB)
|
|