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

[µo°Ý] ¦X¨Ö¤lÀÉ

[µo°Ý] ¦X¨Ö¤lÀÉ

¨C¤é»Ý­n¤â°Ê±N¦U¯¸ÂIªº¤lÀɤΥÀÀɦX¨Ö¦¨¥ÀÀÉ­pºâ
¦³®É­Ô¦³¥ÀÀɦ³®É­Ô¨S¦³(¬O·í®ÉWIP¬y°Êªºª¬ªp)
¯¸ÂI¤]¤£©T©w(­Y¼´WIP·í®É·í¯¸¨S¦³WIP´N·|®ø¥¢)
½Ð±Ð¦U¦ì¤j®v¥¨¶°¸Ó¦p¦ó¼¶¼g¡AÁÂÁ¡I

¥ÀÀÉ°ÝÃD-20181227.rar (56.28 KB)
Adam

Sub TEST()
Dim Arr, xD, i&, j&, N&, T$, U&
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([RAW!CE1], [RAW!A1].Cells(Rows.Count, 1).End(xlUp))

For i = 2 To UBound(Arr)
    T = Arr(i, 3): If Len(T) <> 13 Then GoTo 101
    T = Left(T, 12) & "X":  U = xD(T)
    If U = 0 Then
       For j = 1 To UBound(Arr, 2): Arr(N + 2, j) = Arr(i, j): Next
       Arr(N + 2, 3) = T: N = N + 1: xD(T) = N: GoTo 101
    End If
    For j = 4 To UBound(Arr, 2)
        Arr(U + 1, j) = Val(Arr(U + 1, j)) + Val(Arr(i, j))
    Next j
101: Next i

With Sheets("After")
     .UsedRange.ClearContents
     If N = 0 Then Exit Sub
     .[A1:CE1].NumberFormatLocal = "@"
     .[A1:CE1].Resize(N + 1) = Arr
End With
End Sub

Xl0000452.rar (68.83 KB)

TOP

¦^´_ 2# ­ã´£³¡ªL


   ·PÁ "­ã´£³¡ªL"¤j³s°²¤¤ÁÙ©âªÅ¨ó§U¡A¯u¬O¤Ó·PÁ¤F~
Adam

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD