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

¤j¶q¸ê®Æ­pºâ

¦^´_ 10# oak0723-1


    ¦]°ÝÃDÃþ¦ü
©Ò¥H´N¦b³o¨à¤@¨Ö¨D¸Ñ

TOP

¦^´_ 10# oak0723-1

±zªº¤½¦¡ªº±ø¥ó»P´y­z±ø¥ó¤£¤@¼Ë¦p·Ó¤ù¡A½Ð°Ý­þ­Ó¬O¥¿½T?
¥t¥~½Ð°Ý¤W¤U­­ªº©w¸q¬O¹ïªº¶Ü? Á|¨Ò¤W­­1001¡A¤U­­1006¡A¼Æ¦r­n¹ï½Õ§a? ¥¿½T¤W­­1006¡B¤U­­1001

11.PNG (56.29 KB)

11.PNG

TOP

¦^´_ 10# oak0723-1

¼Æ­È­Y¦b©ó¤W¤U­­¬É¤º«h¬°1,­Y§C©ó¤U­­©Î°ª©ó¤W­­«hÅã¥Ü 0
¦p¤U¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

Sub test()
Dim Arr, Drr, Brr(), Crr(), T, XMax, XMin
Tm = Timer
Arr = Range([¸ê®Æ®w!b6], [¸ê®Æ®w!b65536].End(3))
'Drr = Sheets("¸ê®Æ®w").Range("i6:ama" & UBound(Arr) + 5)
Drr = Sheets("¸ê®Æ®w").Range("i6:p" & UBound(Arr) + 5)
[¤ñ¹ï!b6].Resize(UBound(Arr)) = Arr
ReDim Brr(1 To UBound(Arr), 1 To 8) '1 to 1000
ReDim Crr(1 To UBound(Arr), 1 To 1)
With Sheets("¤ñ¹ï")
    Arr = .Range("i3:p4")
    For i = 1 To UBound(Drr)
        Crr(i, 1) = 0
        For j = 1 To UBound(Arr, 2)
            T = Drr(i, j): XMin = Arr(1, j): XMax = Arr(2, j)
            If XMin = "" Or T = "" Then Brr(i, j) = "": GoTo 99
            If T < XMin Or T > XMax Then

                Brr(i, j) = 0
            Else
                 Brr(i, j) = 1: Crr(i, 1) = Crr(i, 1) + 1
            End If
99:     Next j
    Next i
    .Range("h6").Resize(UBound(Crr)) = Crr
    .Range("i6").Resize(UBound(Brr), UBound(Brr, 2)) = Brr
End With
MsgBox Timer - Tm
End Sub

TOP

¦^´_ 13# samwang
§A¦n
´ú¸Õ¤@¤Uµo²{¦³¨Ç°ÝÃD
§Ú¼W¥[¸ê®Æ¦C¼Æ©MÄæ¼Æ
µo²{¤£¯àÀH¼W´î¸ê®Æ¼ÆÅܰʤñ¹ïµ²ªG
¦pªþ¥ó»¡©ú

Image 143-1.jpg (135.45 KB)

Image 143-1.jpg

1101005-¤ñ¹ï&¦X­p02-1.rar (119.05 KB)

TOP

¦^´_ 14# oak0723-1

§Ú¼W¥[¸ê®Æ¦C¼Æ©MÄæ¼Æ
µo²{¤£¯àÀH¼W´î¸ê®Æ¼ÆÅܰʤñ¹ïµ²ªG
>> ¤w§ó·s¡A½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
   
Sub test()
Dim Arr, Drr, Brr(), Crr(), T, XMax, XMin, R%, C%
Tm = Timer
With Sheets("¸ê®Æ®w")
    R = .[b6].End(4).Row
    C = .Cells(5, Columns.Count).End(1).Column
    Arr = .Range(.[b6], .Cells(R, 2))
    Drr = .Range(.[i6], .Cells(R, C))
End With

With Sheets("¤ñ¹ï")
    .[b6].Resize(UBound(Arr)) = Arr
    ReDim Brr(1 To UBound(Arr), 1 To UBound(Drr, 2))
    ReDim Crr(1 To UBound(Arr), 1 To 1)
    C = .Cells(3, Columns.Count).End(1).Column
    Arr = .Range(.[i3], .Cells(4, C))

    For i = 1 To UBound(Drr)
        Crr(i, 1) = 0
        For j = 1 To UBound(Arr, 2)
            T = Drr(i, j): XMin = Arr(1, j): XMax = Arr(2, j)
            If XMin = "" Or T = "" Then Brr(i, j) = "": GoTo 99
            If T < XMin Or T > XMax Then
                Brr(i, j) = 0
            Else
                 Brr(i, j) = 1: Crr(i, 1) = Crr(i, 1) + 1
            End If
99:     Next j
    Next i
    .Range("h6").Resize(UBound(Crr)) = Crr
    .Range("i6").Resize(UBound(Brr), UBound(Brr, 2)) = Brr
End With
MsgBox Timer - Tm
End Sub

TOP

¦^´_ 15# samwang


    §A¦n
·PÁ§AÄ@¼ö¤ßÀ°¦£
¥Ø«e´ú¸Õ°õ¦æµo¥Í"°}¦C¯Á¤Þ¶W¥X½d³ò"ªº°ÝÃD

Image 6.jpg (257.54 KB)

Image 6.jpg

1101005-¤ñ¹ï&¦X­p02-1-1.rar (147.84 KB)

TOP

¦^´_ 16# oak0723-1


  ¥Ø«e´ú¸Õ°õ¦æµo¥Í"°}¦C¯Á¤Þ¶W¥X½d³ò"ªº°ÝÃD
>> ¦]¬°¸ê®Æ®w»P¤ñ¹ïªºÄæ¦ì¤£¤@­P¾É­P°ÝÃD¡A¤w§ó·s·s¼W1¦C¦p¤U¬õ¦r¡A½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

...
...
With Sheets("¤ñ¹ï")
    .[b6].Resize(UBound(Arr)) = Arr
    ReDim Brr(1 To UBound(Arr), 1 To UBound(Drr, 2))
    ReDim Crr(1 To UBound(Arr), 1 To 1)
    C1 = .Cells(3, Columns.Count).End(1).Column
    If C1 > C Then C = C Else C = C1
    Arr = .Range(.[i3], .Cells(4, C))
    For i = 1 To UBound(Drr)
...
...

TOP

        ÀR«ä¦Û¦b : ¤£­nÀH¤ß©Ò±ý¡A­nÀH¤ß±Ð¨|¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD