- ©«¤l
- 44
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 84
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- sp2
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-10-12
- ³Ì«áµn¿ý
- 2021-11-10
|
Sub CNTIF()
Dim MySt1 As Worksheet, MySt2 As Worksheet
Dim I&, J&
Set MySt1 = Workbooks("0427.xlsx").Worksheets("¤é³øªí")
Set MySt2 = Workbooks("0427.xlsx").Worksheets("²£¯à¶i«×")
For I = 2 To 6
For J = 5 To 34
MySt2.Cells(I, J) = Application.WorksheetFunction.CountIfs(MySt1.Columns(2), MySt2.Cells(I, 1), MySt1.Columns(11), MySt2.Cells(I, 2), MySt1.Columns(12), MySt2.Cells(1, J))
Next J
Next I
End Sub |
|