ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¶×¾ã²Î­p,¸ê®Æ«¬ºA¤£²Å,¦p¦ó±Æ°£.

[µo°Ý] ¶×¾ã²Î­p,¸ê®Æ«¬ºA¤£²Å,¦p¦ó±Æ°£.

1.¶×¾ã²Î­p,¸ê®Æ«¬ºA¤£²Å,¦p¦ó±Æ°£.
2.¶×¾ã«á"002"ÅÜ"2",¦p¦ó³B²z,·P®¦.

¿ù»~°T®§.jpg (73.25 KB)

¿ù»~°T®§.jpg

¾P°â²Î­p1.rar (18.69 KB)

§ù¤p¥­

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2023-2-4 16:18 ½s¿è

ARR1(4, m) = Val(ARR1(4, m)) + Val(arr(i, 4))
¸ê®Æ°Ï§t"°²ªÅ®æ", ¶·Âà­È//
¨ä¥¦³£¥[¤WVal

TOP

¥»©«³Ì«á¥Ñ dou10801 ©ó 2023-2-4 16:34 ½s¿è

¦^´_ 2# ­ã´£³¡ªL ·PÁ«e½ú«ü¥¿,¥[VAL()¤w±Æ°£.
¥N¸¹arr(i,2),­ì¨Ó¬O"002"¶×¾ã«á·|ÅÜ"2",©¹¤UÃþ±À,¦p¦ó³B²z,¦A¦¸·PÁÂ.
§ù¤p¥­

TOP

¦^´_ 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

TOP

¦^´_ 4# ­ã´£³¡ªL ·P®¦,§Ú¤@ª½¥Î,format()¤£¦æ,­ì­n³o¼Ë³B²z,ÁÂÁÂ.
§ù¤p¥­

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD