- ©«¤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
|
¦^´_ 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ªº¼Æ¶qpºâ¤£¥]§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)- Sub ±ø¥ó§R°£()
- Dim arr, U%
- Dim xArea As Range, xR As Range, xU As Range, xD, T$, I&
- 'For i = 1 To 28 Step 9
- For I = 1 To Cells(1, Columns.Count).End(xlToLeft).Column Step 10
- '¦Û°Ê°»´úÄæ¦ì¼Æ ¥H9Ä欰¤@²Õ
- Set xD = CreateObject("Scripting.Dictionary")
- Set xArea = Range(Cells(2, I), Cells(Rows.Count, I).End(xlUp))
- For Each xR In xArea
- T = xR(1, 5) & xR(1, 6): xD(T) = xD(T) + 1
- Next
- 'Àˬd²Å¦X§R°£±ø¥óªÌ¡A¯Ç¤J xU Àx¦s®æÁp¶°
- Set xU = Cells(xArea.Rows.Count + 2, 1)
- For Each xR In xArea
- T = xR(1, 5) & xR(1, 6)
- If xD(T) >= [¶K¯È±ø¥ó] And xR(1, 8) = "." And xR(1, 10) = "A" Then Set xU = Union(xU, xR.Resize(1, 3))
- Next
- '§R°£
- If xU.Count > 1 Then xU = "" 'xU.Delete Shift:=xlUp
- 'If xU.Count > 1 Then xU.Delete Shift:=xlUp
- Next I
-
- End Sub
½Æ»s¥N½X |
|