- ©«¤l
- 2836
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2892
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-30
|
¦^´_ 3# dou10801
Sub «ö¶s4_Click()
Dim ARR1()
Set d = CreateObject("scripting.dictionary")
arr = Range("a2:k" & Cells(Rows.Count, 2).End(xlUp).Row)
For i = 1 To UBound(arr)
If Not d.exists(arr(i, 1) & "|" & arr(i, 2)) Then
n = n + 1
d(arr(i, 1) & "|" & arr(i, 2)) = n
ReDim Preserve ARR1(1 To 11, 1 To n)
For j = 1 To 11
ARR1(j, n) = arr(i, j)
Next j
Else
m = d(arr(i, 1) & "|" & arr(i, 2))
For j = 4 To 11
ARR1(j, m) = Val(ARR1(j, m)) + Val(arr(i, j))
Next j
End If
Next
With [m2].Resize(n, 11)
.Columns(2).NumberFormatLocal = "@" '¤å¦r®æ¦¡
.Value = Application.Transpose(ARR1)
End With
End Sub |
|