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

[µo°Ý] ½Ð°Ý¦p¦ó¥i²Î­p¥X²{¦¸¼Æ¨Ã¥B¥]§t¦h±ø¥óªº¸ê®Æ§R°£©O?

[µo°Ý] ½Ð°Ý¦p¦ó¥i²Î­p¥X²{¦¸¼Æ¨Ã¥B¥]§t¦h±ø¥óªº¸ê®Æ§R°£©O?

¦p¦ó³]©w¯à±N¥ª¤è­ì©l¸ê®Æ
1.¦PÃþ§O¤º¦P«~¦W¬Û¦PªÌ¥B¼Æ¶q¤j©ó20ªº
.¨Ã¥B³ÆµùÄæ¥u¦³¡i.¡jªº¸ê®Æ¦C§R°£©O?

¥D­n¥d¦b¤£ª¾¸Ó¦p¦ó²Î­p¦¹¥X²{¦¸¼Æ¤j©ó20ªº¶µ¥Ø°µ§R°£

¦h±ø¥ó§PÂ_§R°£.zip (12.72 KB)

¦^´_ 20# ­ã´£³¡ªL


    ·PÁª©¤j....§Ú·Qªº¦n½ÆÂø....

TOP

For Each xR In xArea
¡@¡@If xR(1, 10) = "A" Then
¡@¡@¡@T = xR(1, 5) & xR(1, 6)
¡@¡@¡@xD(T) = xD(T) + 1
¡@¡@End If
Next

«D"A"®É¡A¤£­n³B²z§Y¥i¡I

TOP

¦^´_ 17# starry1314


    ¥Ø«eªº¸Ñ¨M¤è¦¡:±N³æ¦ì¥N¸¹¤£ÄÝ©óAªº½s¸¹ §ï¬°²Î¤@ªº½s¸¹¦A¨Ó°µ¹Bºâ

TOP

¦^´_ 16# ­ã´£³¡ªL

¤j¤j ¤£¦n·N«ä
¤S¹J¨ìÃøÃD¤F......
©³¤U¬°¦UÃþ§Oªº³æ¤@«~¶µ¹F20¥H¤W§Y§R°£,¥B³æ¦ì¥N¸¹¬°Aªº«h§R°£³¡¤ÀÄæ¦ì¸ê®Æ
¶K¯È±ø¥ó=20
xR(1, 10)=³æ¦ì¥N¸¹

¥Ø«eªºÃøÃD¬O...¹F20¥H¤Wªº¼Æ¶q­pºâ¤£¥]§t ³æ¦ì¥N¸¹¤£¬°A
¤£¬°Aªº³æ¦ì«h²Î¤@­pºâ
¦³¸ÕµÛ°µ­×§ï¦ý³o¼Ë¦]¬°³æ¦ì¥N¸¹º¡¦h
  T = xR(1, 5) & xR(1, 6)  §ï¬°¡õ
  T = xR(1, 5) & xR(1, 6) & xR(1, 10)
  1. Sub ±ø¥ó§R°£()
  2. Dim arr, U%
  3. Dim xArea As Range, xR As Range, xU As Range, xD, T$, I&

  4. 'For i = 1 To 28 Step 9
  5. For I = 1 To Cells(1, Columns.Count).End(xlToLeft).Column Step 10
  6. '¦Û°Ê°»´úÄæ¦ì¼Æ ¥H9Ä欰¤@²Õ
  7.     Set xD = CreateObject("Scripting.Dictionary")
  8.     Set xArea = Range(Cells(2, I), Cells(Rows.Count, I).End(xlUp))
  9.     For Each xR In xArea
  10.         T = xR(1, 5) & xR(1, 6): xD(T) = xD(T) + 1
  11.     Next
  12. 'Àˬd²Å¦X§R°£±ø¥óªÌ¡A¯Ç¤J xU Àx¦s®æÁp¶°
  13.     Set xU = Cells(xArea.Rows.Count + 2, 1)
  14.     For Each xR In xArea
  15.         T = xR(1, 5) & xR(1, 6)
  16.         If xD(T) >= [¶K¯È±ø¥ó] And xR(1, 8) = "." And xR(1, 10) = "A" Then Set xU = Union(xU, xR.Resize(1, 3))
  17.     Next
  18. '§R°£
  19.    If xU.Count > 1 Then xU = ""  'xU.Delete Shift:=xlUp
  20.     'If xU.Count > 1 Then xU.Delete Shift:=xlUp
  21. Next I
  22.    
  23. End Sub
½Æ»s¥N½X

TOP

¦^´_ 16# ­ã´£³¡ªL
¤F¸Ñ¡I·PÁ«ü¾É¡ã!!

TOP

¦^´_ 15# starry1314


¶¡¹j¢³¸õ¤T¦¸¡A¢°¡Ð¢´¡Ð¢¸¡A¦A¸õ¤@¦¸´N¢°¢²¡A©Ò¥H 1 To 9 ©Î 1 To 12 ¦P¼Ë¡ã¡ã

TOP

¦^´_ 14# ­ã´£³¡ªL


    ·PÁÂ~§¹¬ü¹F¨ì©Ò­nªº®ÄªG !!
¦Û°Ê°»´úÄæ¦ì¦n¥Î¦h¤F,
¤£¹L¤£À´¬°¦ó²Ä¤@¦¸POªºª©¥»
For i = 1 To 9 Step 4 '¦@¦³12­ÓÄæ¦ì ¦ý¤£ª¾¬°¦ó·|¬O9,¤£¬OÀ³¸Ó¬O12¶Ü

TOP

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-11-28 10:57 ½s¿è

¦^´_ 13# starry1314


Set xArea = Range(Cells(2, i), Cells(Rows.Count, i).End(xlUp)(1, 8))¡@¡@

¬õ¦â³¡¥÷½Ð§R±¼¡]¤@®Éµ§»~¡D¨Sµo²{¡^¡I
¨ú¤@­ÓÄæ¦ì§Y¥i¡A¦h¤F¬õ¦â³¡¥÷¡AxArea´NÅܦ¨¢·­ÓÄæ°Ï¡ã¡ã

¨ä¥¦¤j­P¢÷¢ó¡A´N¥u¬Ý¸ê®Æ¬O§_¦³©T©w¬[ºc¡A¤£µM¤]¬OÃø¥H¥¿½T°õ¦æµ{¦¡ªº¡I


¤U¤@¦æ¥i¦Û°Ê°»´ú¡eÄæ¦ì¡f¼Æ¡G
For i = 1 To Cells(1, Columns.Count).End(xlToLeft).Column Step 9

TOP

¦^´_ 10# ­ã´£³¡ªL
¥Ø«e§ï¬°³o¼Ë¥i¹F¦¨®ÄªG,¤£ª¾¬O§_¦³¤£§´ªº¦a¤è
Sub ¼ÐÅÒ()
Dim xArea As Range, xR As Range, xU As Range, xD, T$, i&
For i = 1 To 28 Step 9
    Set xD = CreateObject("Scripting.Dictionary")
    Set xArea = Range(Cells(2, i), Cells(Rows.Count, i).End(xlUp)(1, 8))
    For Each xR In xArea
        T = xR(1, 5) & xR(1, 6): xD(T) = xD(T) + 1
    Next

    Set xU = Cells(xArea.Rows.Count + 2, 1)
    For Each xR In xArea
        T = xR(1, 5) & xR(1, 6)
        If xD(T) >= 20 And xR(1, 8) = "." Then Set xU = Union(xU, xR.Resize(1, 9))
    Next

    If xU.Count > 1 Then xU.Delete Shift:=xlUp
Next i
End Sub

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD