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

[µo°Ý] ¦p¦ó§P©w®Æ¸¹+§å¸¹¨ä¥Í²£¤Ñ¼Æ

¦^´_ 13# jsc0518


§Ú´ú¸Õ¨S°ÝÃD¦pªþ¥ó¡A¤wªþ¤W§Ú´ú¸ÕªºÀɮסA½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

1.gif (315.2 KB)

1.gif

1111_1120.zip (15.62 KB)

TOP

¦^´_ 12# samwang
Dear samwang,
¦­¦w¡I§Ú§ï¤F»yªk¦p¤U¡A¦ý¤´¥X²{¿ù»~400ªºµe­±





Sub test()
Dim Arr, xD, Brr(), T$, T1$, i&, n%, m%
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([01!a1], [01!c65536].End(3))
ReDim Brr(1 To UBound(Arr), 1 To 3)
For i = 2 To UBound(Arr)
    T = Arr(i, 2) & "|" & Arr(i, 3)
    T1 = Arr(i, 1) & "|" & Arr(i, 2) & "|" & Arr(i, 3)
    If xD.Exists(T) Then
        m = xD(T)
        If Not xD.Exists(T1) Then Brr(m, 3) = Brr(m, 3) + 1
    Else
        n = n + 1: xD(T) = n: xD(T1) = n
        Brr(n, 1) = Arr(i, 2)
        Brr(n, 2) = Arr(i, 3)
        Brr(n, 3) = 1
    End If
Next

With Sheets("02").Range("g2").Resize(n, 3)
    .Value = Brr
    .Sort Key1:=.Item(1), Order1:=1, _
          Key2:=.Item(2), Order2:=1, Header:=2
End With
End Sub
Just do it.

TOP

¦^´_ 11# jsc0518

With Range([02!g2]).Resize(n, 3)
>> With Sheets("02").Range("g2").Resize(n, 3)
½Ð­×§ï¦p¤W¡AÁÂÁ   

TOP

¦^´_ 10# samwang
1111.rar (8.57 KB)

¦bÀ°§Ú¬Ý¤@¤UÀɮסAÁÂÁÂ
Just do it.

TOP

¦^´_ 6# jsc0518


¤è«Kªþ¥óÀɮ׶Ü?
ÁÂÁÂ

TOP

¥»©«³Ì«á¥Ñ jsc0518 ©ó 2021-11-19 21:46 ½s¿è

¦^´_ 7# ML089
Dear ML089,
­è­è¸Õ¤F¤@¤U¡Aµo²{¦b¬Û¦P¤é´Á¦³¥X²{2¦¸
¦b¤½¦¡¤]¬O²Ö­p¨ì¦³2¦¸

¦ý§Ú§Æ±æ¬O·í¤é­Y¦³¥X²{2¦¸¥H¤W¡A¤½¦¡À°§Ú§PÂ_ºâ1¦¸


Thank you.
Just do it.

TOP

¦^´_ 7# ML089
Dear ML089,
±ß¤W¦n¡I·PÁ±zªº¼ö¤ß¦^´_»P«ü¾É
´ú¸Õ¥i¥H¨Ï¥Î¼Ú¡I
Thank you.
Just do it.

TOP

J2 =COUNT(0/FREQUENCY((G2=B$2:B$99)*(H2=C$2:C$99)*A$2:A$99,A$2-2+ROW($1:$99)))-1
¤U©Ô
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 2# samwang
Dear samwang,
§Ú­×§ï¤F»yªk¡A¥X²{400¿ù»~¡C
»¡©ú¤@¤U¡A§Ú§â­ì¥»A~CÄæ¦ìªº¤u§@ªí©R¦W¬°"01"
¦Ó­ì¥»©óG~IÄæ¦ì§Ú§â¥¦©ñ¦b"02"(¤u§@ªí¦WºÙ)
¦A½Ð±z«ü¾É§Ú


»yªk§ó§ï¦p¤U

Sub test()
Dim Arr, xD, Brr(), T$, T1$, i&, n%, m%
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([01!a1], [01!c65536].End(3))
ReDim Brr(1 To UBound(Arr), 1 To 3)
For i = 2 To UBound(Arr)
    T = Arr(i, 2) & "|" & Arr(i, 3)
    T1 = Arr(i, 1) & "|" & Arr(i, 2) & "|" & Arr(i, 3)
    If xD.Exists(T) Then
        m = xD(T)
        If Not xD.Exists(T1) Then Brr(m, 3) = Brr(m, 3) + 1
    Else
        n = n + 1: xD(T) = n: xD(T1) = n
        Brr(n, 1) = Arr(i, 2)
        Brr(n, 2) = Arr(i, 3)
        Brr(n, 3) = 1
    End If
Next

With Range([02!g2]).Resize(n, 3)
    .Value = Brr
    .Sort Key1:=.Item(1), Order1:=1, _
          Key2:=.Item(2), Order2:=1, Header:=2
End With
End Sub
Just do it.

TOP

¦^´_ 2# samwang
Dear samwang,
±ß¤W¦n¡I·PÁ±zªº¼ö¤ß¦^ÂлP«ü¾É¼Ú
­è­è´ú¸Õ¤@¤U»Pªk¦¡OKªº¡A·P®¦
§Úµ¥µ¥·|¦b¤p§ï¤@¤U±zªº»yªk¡A¦³°ÝÃD¦A»P±z½Ð±Ð¼Ú¡I
Thank you.
Just do it.

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD