|
- Dim Z As Integer, Y As Integer, Ii As Integer, Iii As Integer
- Dim M As Integer, N As Integer, Cs As Integer
- X = Range("c65536").End(xlUp).Row
- Y = Range("A65536").End(xlUp).Row
- Z = Range("D65536").End(xlUp).Row
- N = 0
- 'MsgBox N & "/" & M
- For I = 9 To Y
- If Range("A" & I).Value = "" Then
- Exit For
- ElseIf Range("A" & I).Value = Range("D5").Value Then
- N = N + 1
- Range("c" & I).Value = N
- Range("b" & I).Value = 1
- End If
- For Ii = 9 To Z
-
- If Range("A" & I).Value = Range("D" & Ii).Value Then
- M = 0
- For Iii = 9 To I
- If Range("A" & I).Value = Range("a" & Iii).Value Then M = M + 1
-
- Next
-
- Range("c" & I).Value = Range("c" & Ii).Value & "," & M
- Range("b" & I).Value = Cx(Range("c" & I).Value, ",") + 1
- Exit For
- End If
-
- Next
- Next
复制代码 |
|