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

[µo°Ý] ­«½Æ¦¸¼Æ¤§²Î­p

[µo°Ý] ­«½Æ¦¸¼Æ¤§²Î­p

¦³¤@ªí³æ¼Æ¾Ú¶W¹L¤W¤d¦C
§Æ±æ±N C Äæ¼Æ¨ã¦³­«½Æ 2 ¦¸¥H¤WªÌ
±N C Äæ­«½Æ¤Î D Äæ¬ÛÃö¼Æ¾Ú¿é¤J¦Ü G ¤Î H Äæ¨Ã²Î­p­«½Æ¦¸¼Æ
¿z¿ï½d³ò C2:C1349...
C1350¤£¦C¤J(C Äæ¼Æ¾Ú¦C¼Æ¤£©T©w)
¬O§_¯à±NC2:C1349.¿z¿ïµ²ªG¤@¤£¦P²Õ¼Æ¾Ú¦U¦³¤£¦PÃC¦â°Ï§O



1121228.rar (34.25 KB)

(¿é¤J½s¸¹12199) googleºô§}:https://hcm19522.blogspot.com/
google"EXCEL°g"  blog  ©Îgoogleºô§}:https://hcm19522.blogspot.com/

TOP

¦^´_ 1# cypd


    ÁÂÁ½׾Â,ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
«á¾ÇÂǦ¹©«½m²ß°}¦C»P¦r¨å,¾Ç²ß¨ì¿z¿ï«áªºÀx¦s®æ½d³ò±a¤J°}¦C¤¤·|¦³¸ê®Æ¤¤Â_¤£¥þªº°ÝÃD,«á¾ÇÂǦ¹©«¾Ç²ß¤F.SpecialCells(xlCellTypeVisible)¤èªk,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò
°õ¦æµ²ªG:


Option Explicit
Sub TEST()
Dim xU As Range, Crr, A As Range, Z, T$, T1$, T2$, R&, N&, i&, j%
Set Z = CreateObject("Scripting.Dictionary")
Set xU = Range([C2], [C65536].End(xlUp)).SpecialCells(xlCellTypeVisible)
ReDim Crr(1 To 10000, 1 To 3)
For Each A In xU: Z(Trim(A)) = Z(Trim(A)) + 1: Next
For Each A In xU
   T1 = Trim(A): T2 = Trim(A(1, 2)): T = T1 & "|" & T2
   If Z(T1) = 1 Or T1 = "" Then GoTo i01 Else R = Z(T)
   If R = 0 Then N = N + 1: R = N: Z(T) = R: Crr(R, 1) = "'" & T1: Crr(R, 2) = T2
   Crr(R, 3) = Crr(R, 3) + 1
i01: Next
If N = 0 Then Exit Sub
With Workbooks.Add.Sheets(1)
   .[A1].Resize(1, 3) = [{"ÃöÁä¦r1","ÃöÁä¦r2","¦¸¼Æ"}]
   .[A2].Resize(N, 3) = Crr
   .Columns(1).EntireColumn.AutoFit
   .Cells.Sort KEY1:=.Cells(1), Order1:=1, Key2:=.Cells(2), Order2:=1, Header:=1
   For i = 2 To .[A65536].End(3).Row
      j = j - (.Cells(i, 1) <> .Cells(i - 1, 1))
      .Cells(i, 1).Interior.ColorIndex = j Mod 15 + 33
   Next
End With
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 3# Andy2483

«D±`·PÁ  Andy2483 ¼ö¤ß¦^´_

Ãö©ó©Ò²£¥Íªºµ²ªG¤u§@ªí1
(­«½Æ¼Æ¾Ú¤£¦P²Õ§O¥HÃC¦â°Ï¹j«D±`¹ê¥Î...Æg³á^^)

PS:µ²ªG¬O§_¯àµ²¦X²£¥Í¦b¸ÓÀÉ²Ä 2 ¤u§@ªí...

TOP

¦^´_ 2# hcm19522

«D±`·PÁ hcm19522 ¼ö¤ß¦^´_
©Ò´£¨Ñ ¶W¹L15¦r¤¸ ­«½Æ´£¨ú ¬Û»E ±Æ§Ç §@¬°°Ñ¦Ò  ^^

TOP

¦^´_ 4# cypd


    ÁÂÁ«e½ú¦^´_
µ²ªG©ñ¦b¥»ÀÉ·s¤u§@ªíªº¤è®×,Åܧó¦p¤U:
With Workbooks.Add.Sheets(1)     ¸m´«¬°  >>   With Worksheets.Add: .Name = Format(Now, "YY_MM_DD_HH_MM_SS")
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 6# Andy2483

·PÁ  Andy2483 ¦A«×¦^´_

Æg³á  !!
¤ñ¹ïµ²ªG«D±`¨³³t~¤ô°Õ

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD