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

¨D¦hÄæ§@·~­û¨C¤é²£¥X¼Æ¶q

¨D¦hÄæ§@·~­û¨C¤é²£¥X¼Æ¶q

¨D¨C¤é¦U§@·~­û²£¥X¼Æ¶q¡A¦pªþ¥ó



¨D¨C¤é¦U§@·~­û²£¥X¼Æ¶q.rar (7.53 KB)

¥»©«³Ì«á¥Ñ joblyc017 ©ó 2017-12-2 10:36 ½s¿è

¦^´_ 1# 074063

¤½¦¡¸Ô¸Ñ¡A½Ð°Ñ¦Ò¡Ghttps://goo.gl/j92uAS

TOP

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

TOP

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,¾Ç²ß¤è®×¦p¤U,½Ð¦U¦ì«e½ú«ü±Ð

°õ¦æ«e:


°õ¦æµ²ªG:



Option Explicit
Sub TEST()
Dim Brr, Z, i&, j%, C%, T$
'¡ô«Å§iÅܼÆ
Set Z = CreateObject("Scripting.Dictionary")
'¡ô¥OZÅܼƬO ¦r¨å
Brr = Range([J2], [A65536].End(3))
'¡ô¥OBrrÅܼƬO ¤Gºû°}¦C,¥HA~JÄæÀx¦s®æ­È±a¤J°}¦C¤¤
For i = 3 To UBound(Brr)
   For j = 3 To 9 Step 3
      For C = j - 1 To j + 1
         T = Brr(i, 1) & Brr(1, j): Z(T) = Z(T) + Brr(i, C)
      Next
   Next
Next
'¡ô³]¶¶°j°é±N²Õ¦X¦r¦ê·íkey,item¬O ®É¼Æ²Ö¥[­È
Brr = Range([P2], [L65536].End(3))
'¡ô¥OBrr°}¦C­È´«²±¸Ë¥Ø¼ÐÀx¦s®æ­È
For i = 2 To UBound(Brr)
   For j = 2 To 5
      Brr(i, j) = Z(Brr(1, j) & Brr(i, 1))
   Next
Next
'¡ô³]¶¶°j°é±NZ¦r¨å¤¤ªºitem­È¦R¥X¨Óµ¹°}¦C
Range([P2], [L65536].End(3)) = Brr
'¡ô¥OBrr°}¦C­È¼g¤JÀx¦s®æ¤¤
Set Z = Nothing: Erase Brr
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¯à¥I¥X·R¤ß´N¬OºÖ¡A¯à®ø°£·Ð´o´N¬O¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD