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

[µo°Ý] ½Ð°Ý¦p¦óŪ¨úÀx¦s®æ¸Ìªºµüªº¦¸¼Æ?

Hello gaishutsusuru,

³o­Ó¬Ý°_¨Ó, «ÜÃø¥Î¤½¦¡ªº¤è¦¡¹F¦¨, ´N¦ppen¨Ó»¡, ¦³¦b¦P¤@­Ó¥y¤l¸Ì, ¥X²{¹L2¦¸,  ¦ý¥þ³£­ncount¥X¨Ó, ¨Ì§Úªº²z¸Ñ, ³o­Ó¥u¯à¥Î¥¨¶°ªº¤è¦¡¶i¦æ¤F!!
Thanks ~
·s¤â¤W¸ô¡A½Ð¦h¥]²[¡C

TOP

¦^´_ 2# samwang


±z¦n¡AÁÂÁ±zªºÀ°¦£¡A

¦ý§Ú¹ê»Ú´ú¤F¥H«á¡A¥X²{¦p¤U¹Ï¡G
(«ö¤@¦¸¥¨¶°)

(«ö¤G¦¸¥¨¶°)


¥t¤@³¡¥÷¡A
(1) ¹ê»Úªº¸ê®Æ¡A·|¶W¹LA4:B6ªº¤Tµ§¸ê®Æ(¦Ó¨Ò¤l¤¤¥u¦³¦CÁ|3µ§)
(2) ¹ê»Ú·QŪ¨úªºµü¡A¤]·|¶W¹LE4,E5 ªº¤G­Óµü(¦Ó¨Ò¤l¤¤¥u¦³¦CÁ|2­Ó)

(¦pªG¥i¥H¡AÁÙ¬O§Æ±æ¯à¦³¤½¦¡ªº¸Ñªk><)

ÁÂÁ±zªº©âªÅÀ°¦£¡C

TOP

¥»©«³Ì«á¥Ñ samwang ©ó 2022-1-19 08:04 ½s¿è

¦^´_ 1# gaishutsusuru
¥u·|VBA¡A¶È¨Ñ°Ñ¦Ò¡AÁÂÁÂ
Sub test()
Dim Arr, Brr, a, xD, T$, i&, i1&
Brr = Range([e4], [e65536].End(3).Offset(, 2))
Arr = Range([a4], [b65536].End(3))
For i1 = 1 To UBound(Brr)
    T = Brr(i1, 1)
    For i = 1 To UBound(Arr)
        a = Split(Arr(i, 2), " ")
        For j = 0 To UBound(a)
            If InStr(a(j), ",") Then a(j) = Replace(a(j), ",", "")
            If InStr(a(j), ".") Then a(j) = Replace(a(j), ".", "")
            If a(j) = T Then
                Brr(i1, 2) = Brr(i1, 2) + 1
                Brr(i1, 3) = IIf(Brr(i1, 3) = "", Arr(i, 1), Brr(i1, 3) & "," & Arr(i, 1))
            End If
        Next
    Next
Next
Range("e4").Resize(UBound(Brr), 3) = Brr
End Sub

1.JPG (18.62 KB)

1.JPG

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD