- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
Sub TEST()
Dim A, xD, T$(1), N&(1)
Set xD = CreateObject("Scripting.Dictionary")
T(0) = Mid([¤u§@ªí2!b3], 1, 1)
T(1) = Mid([¤u§@ªí2!b3], 2, 1)
For Each A In Range([¤u§@ªí1!c2], [¤u§@ªí1!c1].Cells(Rows.Count, 1).End(xlUp)).Value
¡@¡@If A = "" Or xD(A) = 1 Then GoTo 101
¡@¡@If InStr(A, T(0)) Then
¡@¡@¡@¡@If InStr(A, T(1)) Then N(1) = N(1) + 1 Else N(0) = N(0) + 1
¡@¡@End If
¡@¡@xD(A) = 1
101: Next
[¤u§@ªí2!A5] = N(0)
[¤u§@ªí2!A6] = N(1)
End Sub
ã´£³¡ªL µoªí©ó 2015-11-4 18:52
ª©¤j±z¦n ¹J¨ìÓ°ÝÃD....¦pªG§ì¥XT(0)±MÄݳæ¦ìªº½s¸¹¥i¥Hpºâ¥¿½T,
¦ý¦]¥u¦³6Ó³æ¦ì»Ý³æ¿Wpºâ±MÄݪº¼Æ¶q,¥i§_¥upºâ±N6Ó³æ¦ì¥H¥~ªº½s¸¹¼Æ¶q |
|