§Ö³t¤ñ¹ï¯x°}¤ºªº¸ê®Æ¤j¤p!!
- ©«¤l
- 57
- ¥DÃD
- 36
- ºëµØ
- 0
- ¿n¤À
- 94
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-13
|
§Ö³t¤ñ¹ï¯x°}¤ºªº¸ê®Æ¤j¤p!!
·Q½Ð°Ý¤j®a
°²¦p¦³Ó°ÊºA¯x°}¡A¤º³¡¸ê®ÆÄ´¦p
A, 1
B, 6
A, 100
C, 90
B, 99
D, 1
A, 50
......
¤£ª¾¹Dn°µ¡A¤~¯àÅýVBA§Ö³t¨ú±oÓ§O¶µ¥Øªº³Ì¤jȹïÀ³!
(100¬OAªº³Ì¤jÈ, 99¬OBªº³Ì¤jÈ)
·Q½Ð°Ý¤j®a¦³¨S¦³¤°»òµ´©Û
thank you! |
|
|
|
|
|
|
- ©«¤l
- 41
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 79
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-4-1
- ³Ì«áµn¿ý
- 2016-2-17
|
¦^´_ 1# yenwang
¦pªG¥un§ä¨ä¤¤¤@ӳ̤jÈ¡A¤@Ó°j°é¥[¤ñ¤j¤p´N¥i¥H¤F
°Ñ¦Ò¬Ý¬Ý!- Sub °}¦C§ì³Ì¤jÈ()
- Dim Arr, ViewMax
- Arr = Range("a1:b7") '¤Þ¤J§Aªº°}¦C
- With CreateObject("Scripting.Dictionary")
- For i = 1 To UBound(Arr)
- If .Exists(Arr(i, 1)) Then
- If .Item(Arr(i, 1)) < Arr(i, 2) Then .Item(Arr(i, 1)) = Arr(i, 2)
- Else
- .Add Arr(i, 1), Arr(i, 2)
- End If
- Next i
- For Each ViewMax In .Keys
- Debug.Print ViewMax, .Item(ViewMax)
- Next
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 2833
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2889
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-17
|
Sub AR1017()
Dim Arr, xD, j&, T, V
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([A1], [B65536].End(xlUp))
For j = 1 To UBound(Arr)
¡@¡@T = Arr(j, 1):¡@V = Arr(j, 2)
¡@¡@If xD(T) = "" Then xD(T) = V
¡@¡@If V > xD(T) Then xD(T) = V
Next j
[E1:F1].Resize(xD.Count) = Application.Transpose(Array(xD.keys, xD.items))
End Sub |
|
|
|
|
|
|
- ©«¤l
- 1387
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 1397
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-9-11
- ³Ì«áµn¿ý
- 2024-11-18
|
http://blog.xuite.net/hcm19522/twblog/350193923 |
|
|
|
|
|
|