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

[µo°Ý] ¸ê®Æ¾ã²z»P²Î­p

[µo°Ý] ¸ê®Æ¾ã²z»P²Î­p

¦pªþ¥ó
ºñ¦â¼ÐÅÒ¬¡­¶¬O§Ú¤@¥b§Q¥Î¨ç¼Æ¤@¥b¥Î¤H¤u©Ò°µ¦¨
­Y­n§Q¥ÎVB°µ¦¨¼ÐÅÒ¦WºÙ¬°"¤Àµ§¶q"¬¡­¶
­n¦p¦ó¤~¯à¹F¦¨

1216-060217-¤é¤Àµ§¶q.rar (67.18 KB)

«D±`·P®¦

TOP

¦^´_ 10# oak0723-1
½Ð°Ñ¦Ò
060315-¤é¤Àµ§¶q - test2.rar (131.22 KB)

TOP

½Ð°Ý­Y·Q¦b¤w¼Ð¥Ü¶À©³¬õ¦r¤§Àx¦s®æ¤º¿é¤J¥ô·N¸ê®Æ°µ¤ÀÃþ,À³¦p¦ó°µ§ó§ï(¦pªþ¥ó)

060315-¤é¤Àµ§¶q - test1.rar (125.22 KB)

TOP

¸g¤p§Ì´ú¸Õ«á½T¹ê¬°¥¿¸Ñ
ÁÂÁÂkubi»P­ã´£³¡ªL¤j¤j¼ö¤ß¸Ñµª
Åý¤p§ÌÀò±o¸Ñµª
ÁÂÁÂ
«D±`·P®¦
³Ò¤O!!!

TOP

  1. Sub test_1()
  2. Dim xD As Object, Arr, Brr, V, N&, U%, i&, j%, k%, Km%
  3. Set xD = CreateObject("Scripting.Dictionary")
  4. s = Array(1, 5, 10, 15, 20, 30, 40, 50, 100, 200, 400, 600, 800, 1000, 2000, 3000, 60000)
  5. Arr = Range("A8:C" & [A65536].End(3).Row)

  6. ReDim Brr(1 To UBound(Arr), 1 To UBound(s) * 4 + 1)
  7. del
  8. For i = 1 To UBound(Arr)
  9.     V = Arr(i, 1): U = xD(V)
  10.     If U = 0 Then N = N + 1: U = N: xD(V) = N: Brr(U, 1) = V
  11.     For j = 2 To 3
  12.         Km = 0
  13.         For k = 0 To UBound(s)
  14.             If s(k) * 1000 > Arr(i, j) Then Km = (k - 1) * 4: Exit For
  15.         Next k
  16.         If Km >= 0 Then
  17.            Brr(U, Km + j * 2 - 2) = Brr(U, Km + j * 2 - 2) + Arr(i, j)
  18.            Brr(U, Km + j * 2 - 1) = Brr(U, Km + j * 2 - 1) + 1
  19.         End If
  20.     Next j
  21. Next i
  22. With [D8].Resize(N, UBound(s) * 4 + 1)
  23.      .Value = Brr
  24.      .Sort Key1:=.Item(1), Order1:=xlDescending, Header:=xlNo
  25. End With
  26. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# oak0723-1
½Ð´ú¸Õ¡C
060223-¤é¤Àµ§¶q - test3.rar (130.13 KB)

TOP

ÁÂÁÂkubi¤j¤j
¤p§Ì­è­è´«¤@²Õ¼Æ¾Ú´ú¸Õ
µo²{½s¸¹±Æ§Ç¨Ã«D¥Ñ¤W¦Ó¤U»¼´î±Æ¦C
¦p¦ó­×¥¿¬°¥Ñ¤W¨ì¤U»¼´î±Æ¦C

060223-¤é¤Àµ§¶q - test2.rar (124.1 KB)

TOP

ÁÂÁÂ
¤p§Ì¦n¦n¬ã¨s¤@¤U

TOP

¦^´_ 3# oak0723-1

§Aªºµ{¦¡½X©ñ¿ù¼Ò²Õ¡A¤£À³¸Ó©ñ¦b¤u§@ªí¼Ò²Õ¡AÀ³¸Ó©ñ¦b¤@¯ë¼Ò²Õ¤º¡A½Ð°Ñ¦Òªþ¥[ÀɮסC
½Ð°õ¦æ [¸ê®Æ¤Àµ§] «ö¶s¡C
060222-¤é¤Àµ§¶q - test1.rar (119.12 KB)

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD