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

½Ð±Ð¦p¦ó²Î­p­Ó§O¤H­ûªº¤£­«½ÆªÑ²¼²M³æ

½Ð±Ð¦p¦ó²Î­p­Ó§O¤H­ûªº¤£­«½ÆªÑ²¼²M³æ

¥»©«³Ì«á¥Ñ peter460191 ©ó 2021-6-28 13:50 ½s¿è

½Ð±Ð¦p¦ó²Î­p­Ó§O¤H­ûªº¤£­«½ÆªÑ²¼²M³æ,¤£¦n·N«ä!ªþ¥ó¤W¶Ç¤£¤F~~
peter460191

¦^´_ 1# peter460191

½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁ¡C

Sub test()
Dim Arr, xD, xD1, T, TT, i&
Set xD = CreateObject("Scripting.Dictionary")
Set xD1 = CreateObject("Scripting.Dictionary")
Arr = Range("A1:B" & [A65536].End(3).Row)
For i = 2 To UBound(Arr)
    T = Arr(i, 2): TT = Arr(i, 1) & T: xD(T & "") = ""
    If Not xD1.Exists(TT) Then
        xD1(TT & "") = xD1(TT & "") + 1
        xD1(T & "") = xD1(T & "") + xD1(TT & "")
    End If
Next
Range("E2").Resize(xD.Count) = Application.Transpose(xD.keys)
With Range("D2").Resize(xD.Count, 3)
    .Sort key1:=.Item(2), Header:=xlNo
    Arr = .Value
    For i = 1 To UBound(Arr)
        T = Arr(i, 2): Arr(i, 1) = i: Arr(i, 3) = xD1(T & "")
    Next
    .Value = Arr
End With
End Sub

TOP

¦^´_ 2# samwang
¦n¹³¤£¦æ,¤µ¤Ñ¸ÕµÛ­«·s¤W¶Ç,ÁÙ¬O¤£¯à¤W¶ÇÀÉ®×,©Ò¥H¥u¯à¥d¹Ï,©êºp!

peter460191

TOP

¦^´_ 1# peter460191


    ¦pªG²z¸Ñ¨S¿ù¡@½d¨Ò A¶µ ¬O§_¬°6¤~¹ï¡H¡@¦Ó«D¢´

TOP

¦^´_ 4# singo1232001
¤F¸Ñ,ÁÂÁÂ!~~
peter460191

TOP

¦^´_ 3# peter460191


¦pªþ¥ó½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁ¡C

test.zip (556.35 KB)

TOP

¦^´_ 6# samwang

samwang«D±`ÁÂÁ§A~~
¥t½Ð±Ð¤@¤U,³oºØ±¡§Î¦³¿ìªk¤£¥ÎVBA¼g,¥Î¤@¯ë¨ç¼Æ©Î¯x°}¼g¶Ü?
peter460191

TOP

google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¥»©«³Ì«á¥Ñ samwang ©ó 2021-6-29 15:16 ½s¿è

¦^´_ 7# peter460191

¥[¤F¥Î¨ç¼Æ¤è¦¡ªí¥Ü¡A½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

test2.zip (556.97 KB)

TOP

¦^´_ 8# hcm19522
«D±`ÁÂÁÂ hcm19522
¥i¥H¤F,¨ç¼Æ¤]¥i¥H¤F,§A­Ì¯u¬O¤Ó±j¤F,­nªá¤@ÂI®É¶¡¨Ó¬ã¨sVBA&¨ç¼Æªº¨âºØ¼gªk
¦A¤@¦¸ÁÂÁ§A­Ì.
peter460191

TOP

        ÀR«ä¦Û¦b : ¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí ¤W¤@¥DÃD