Board logo

¼ÐÃD: [µo°Ý] ½Ö¯àÀ°³o´X¥G­«½Æ°Ê§@ªºVBA½G¨­ ÁÂÁ [¥´¦L¥»­¶]

§@ªÌ: lcctno    ®É¶¡: 2015-8-23 18:49     ¼ÐÃD: ½Ö¯àÀ°³o´X¥G­«½Æ°Ê§@ªºVBA½G¨­ ÁÂÁÂ

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-23 18:52 ½s¿è

¥Ñ©ó¦b¤U¬Ovbaªì¾ÇªÌ ¬G¹Á¸Õ±N§Ú¨Ï¥Î¨ç¼Æ¼gªº¼Æ¦Êmb¤§excellÀÉ ¨Ï¥Î¿ý»s¥¨¶°ªº¤è¦¡ ¨Ó±N¸ÓÀɽG¨­ ÁöµM½G¨­«á¥i¥¿±`¨Ï¥Î ¦ý§Ú·QÀ³¸Óµ{¦¡½X¤]¦³Â²¤Æªº¥i¯à©Ê
§Úª¾¹D¥i¥H±N  Rows("3:101").Select §ï¦¨ Rows("3:1001").Select ¦ý·|µo¥ÍÃþ¦ü¨t²Î¸ê·½¤£°÷ªºÄµ§i»y ¬G¥u¦n¼g¦¨¤@¦¸¥u§PÂ_100µ§ªº¸ê®Æ ¦ý§Ú¥Ø«eªº¸ê®Æ¤]±µªñ6000µ§¤F ¥BÁÙ·|Ä~Äò¼W¥[
§Æ±æ¦³°ª¤â¯àÀ°§U§Ú²¤Æ¥¦ ¨ÃÅý¥¦¯à¶¶§Qªº°õ¦æ¨ì 10001µ§ (¬°±N¨Ó¯d«á¸ô) ÁÂÁ¤F

¥Ø«e½G¨­ªº³B²z¹Lµ{¬O±N¨C¤@¤À­¶ «ü«O¯d¤@¦C¤§¨ç¼Æ ¨Ï¥Îvba±N¤§½Æ»s¨Ã¶K¤W99¦C¨ç¼Æ«á ¦b±Nªþ»s¤W¤§µ²ªGÅܦ¨¯Â¤å¦r¦A¶K¦^­ì³B ¨Ì¦¹Ãþ±À...¤u§@ªí.¥Ñ"ªR1" ¨ì"ªR10"  Á`¦@10¤À­¶ ¦pªþ¹Ï



[attach]21778[/attach]


¤À¹j½u++++++++++++++++++++++++++++++++++++++++++++++
'§PÂ_¦C1¤§­È¬O§_¦b¤u§@ªí"Data"¹ïÀ³¤§¨C¤é°ª§C­Èªº½d³ò¤º

Sub §PÂ_¦C()

'2~101

'»s§@§PÂ_¦C
    Sheets("ªR1").Select
    Rows("2:2").Select
    Selection.Copy
    Rows("3:101").Select
    ActiveSheet.Paste
   
'½G¨­
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
   
'»s§@§PÂ_¦C
    Sheets("ªR2").Select
    Rows("2:2").Select
    Application.CutCopyMode = False
    Selection.Copy
    Rows("3:101").Select
    ActiveSheet.Paste
        
'½G¨­
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
   
  ...............
. ....²¤¹L«Ü¦h¤ñ¤uµ{½X...............


'»s§@§PÂ_¦C
Sheets("ªR10").Select
    Rows("2:2").Select
    Application.CutCopyMode = False
    Selection.Copy
    Rows("202:301").Select
    ActiveSheet.Paste
            
'½G¨­
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
        
Sheets("Data").Select
End Sub


¶×¥X¤§¥¨¶°
[attach]21779[/attach]
§@ªÌ: ikboy    ®É¶¡: 2015-8-24 07:18

Sub ZZ()
Dim ar, br
ar = Array("ªR1", "ªR2", "ªR3", "ªR4", "ªR5", "ªR6", "ªR7", "ªR8", "ªR9", "ªR10")
For i = 0 To UBound(ar)
    Select Case i
    Case 0 To UBound(ar) - 1
        With Sheets(ar(i))
            .Rows(2).Copy .Rows("3:101")
            br = .Rows("3:4")
            .Rows("3:101") = br
        End With
    Case UBound(ar)
        With Sheets(ar(i))
            .Rows(2).Copy .Rows("201:301")
            br = .Rows("201:301")
            .Rows("201:301") = br
        End With
    End Select
Next
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-24 08:19

¦^´_ 2# ikboy

·PÁ±zªº¼ö¤ßÀ°§U ¦ý³o¼Ë°õ¦æ¥u¯à¤ñ¹ï300µ§¸ê®Æ §Ú¬O·Q­n¯à°õ¦æ¨ì10001
ÁÙ¦³·Q­n½Ð±Ð ¥i§_¯à¥Ñ¥~³¡¤§­È ¨Ò¦p©ó "Data" ¤§¤À­¶¤º ¥[¤J2­Ó¿é¤J®æ ¥i¥H¿é¤J  [°_©l¦C¼Æ]="Data"¤§L4     [µ²§ô¦C¼Æ]="Data"¤§M4 °µ°Ï¬q¤§¤ñ¹ï ³o¼Ë°õ¦æ°_¨Ó·|¬Ù«Ü¦h®É¶¡
¦b¦¹¥ýÁÂÁ±zªº¶O¤ß¤F
§@ªÌ: ikboy    ®É¶¡: 2015-8-24 08:49

¦^´_ 3# lcctno


Sub ZZ()
Dim ar, br, MyRng
Myrng = sheets("Data" ).[L4] & ¡§:¡¨ & sheets("Data" ).[M4]        Rem[°_©l¦C¼Æ]="Data"¤§L4     [µ²§ô¦C¼Æ]="Data"¤§M4      
ar = Array("ªR1", "ªR2", "ªR3", "ªR4", "ªR5", "ªR6", "ªR7", "ªR8", "ªR9", "ªR10")
For i = 0 To UBound(ar)
    Select Case i
    Case 0 To UBound(ar) - 1
        With Sheets(ar(i))
            .Rows(2).Copy .Rows(myrng)
            br = .Rows(myrng)
            .Rows(myrng) = br
        End With
    Case UBound(ar)
        With Sheets(ar(i))
            .Rows(2).Copy .Rows("201:301") Rem ¦¹³B¦p¦¹Ãþ±À
            br = .Rows("201:301")
            .Rows("201:301") = br
        End With
    End Select
Next
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-24 17:46

¦^´_ 4# ikboy

°e¤W­ìÀÉ ½Ð±z¸Õ¸Õ ¤£ª¾¹D¨ºùØ¥X°ÝÃD ¨ä¤¤
[°õ¦æ]¤§«ö¶s¬O§Ú¿ý»sªº ¥i¥H¥¿±`°õ¦æ7000¦C¤§¸ê®Æ ¦ý°õ¦æ7000¦C­nªá¶O«Ü¤[ªº®É¶¡
[xx]¤§«ö¶s¬O±z²Ä¤@¦¸¼gªº °õ¦æ¿ù»~(«Dµ{¦¡½X¿ù»~)
[yy]¤§«ö¶s¬O±z²Ä¤G¦¸¼gªº °õ¦æ¿ù»~(«Dµ{¦¡½X¿ù»~)

Áٽбz¦h·ÓÅU¤F ÁÂÁ±z

   
[attach]21785[/attach]
§@ªÌ: ikboy    ®É¶¡: 2015-8-25 08:59

¬Ý¨ì¤F°ÝÃD¬O¥N½X¤¤ªº¤¤¤å¦r·½©ó¤£¦P»y¨t, ¦b±zªºÀɮפ¤¶Ã½X¤F, ½Ð¤â°Ê§ó§ï
ar = Array("ªR1", "ªR2", "ªR3", "ªR4", "ªR5", "ªR6", "ªR7", "ªR8", "ªR9", "ªR10")
§@ªÌ: don4831    ®É¶¡: 2015-8-25 10:28

³z¹L¤u§@ºÞ²z­û¤§³B²zµ{§Ç¥iÆ[¹îEXCEL¨Ï¥Î¨t²Î¸ê·½¤§±¡ªp¡C
§ÚªºÀô¹Ò¡G°O¾ÐÅé4G,¥i¥Î2.9G¡AEXCEL¥Î¹F299,000K®É´N·|·í¡C
¥u¶}¡i~test% -.xls¡jÀÉ¡A¤£¶}¨ä¥LÀÉ¡A
(1)¥¼°õ¦æ«e¡AEXCEL¨Ï¥Îªº¨t²Î¸ê·½¡GCPU¨Ï¥Î²v26%¡A°O¾ÐÅé¥Î91,372K
(2)°õ¦æ«á¡A¤ÀªR¦Ü6®É¡AEXCEL¨Ï¥Îªº¨t²Î¸ê·½¡GCPU¨Ï¥Î²v61%¡A°O¾ÐÅé¥Î209,336K
(3)¤ÀªR¦Ü7®É¡AEXCEL¨Ï¥Îªº¨t²Î¸ê·½¡GCPU¨Ï¥Î²v55%¡A°O¾ÐÅé¥Î285,176K
(4)¤ÀªR¦Ü8®É¡AEXCEL¨Ï¥Îªº°O¾ÐÅé¹O290,000K®É¡A¥ÎESC¤¤Â_§@·~¡C
¤½¦¡¬Û·í¯Ó¸ê·½¡A³o¤äµ{¦¡¡A´X¥G©Ò¦³ªº¤u§@ªí³£¦³¤½¦¡¡A
¦pªG¤£¯à±j¤Æ¨t²Î¸ê·½¡A«Øij©îÀÉ¡A±N¤½¦¡Âনµ{¦¡©Mµ²ªG¸ê®Æ¤À¶}§e²{¡C
§@ªÌ: lcctno    ®É¶¡: 2015-8-25 10:44

¦^´_ 6# ikboy

©_©Ç  ¦b§Ú³oºÝ¬Ý°_¨Ó«Ü¥¿±` ¨Ã¨S¦³¶Ã½X???
¥B³£¯à°õ¦æ
§@ªÌ: lcctno    ®É¶¡: 2015-8-25 10:50

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-25 10:51 ½s¿è

¦^´_ 7# don4831
¥ý·PÁ±zªº¥Î¤ß»P«Øij ¨¯­W±z¤F
´N¬O¦]¬°³oÀÉ®×°õ¦æ°_¨Ó ¯uªº«Ü¦û¸ê·½ ¥B¤S¶O®É ¤w«j±j¨Ï¥Î¼Æ¦~¤F (¦]¬°§Ú¥u·|¥Î¨ç¼Æ¼g) ©Ò¥H¤~·|¶K¤å ·Q§ï½Ð°ª¤âÀ°§U§Ú §ï¥ÎVBA¤§¤uµ{¼gªk
§@ªÌ: don4831    ®É¶¡: 2015-8-25 17:06

³z¹L°_¦æ¤Î¨´¦æ°õ¦æ¡A¥i¶W¹L¸Uµ§copy¡G
Sub test()
    Rem '°_¦æ=3¡A¨´¦æ=10000¡A°õ¦æ®É¶¡¡G16:13:30~16:47:10
    Application.ScreenUpdating = False
    lineBegin = Worksheets("Data").Range("I4") '°_¦æ
    lineEnd = Worksheets("Data").Range("J4") '¨´¦æ
    For i = 1 To 10
        Worksheets("ªR" & i).Activate
        Rows(2).Copy
        For j = lineBegin To lineEnd
            Rows(j).PasteSpecial Paste:=xlPasteValues
        Next
        Rem ¨ú®ø½Æ»s¼Ò¦¡
        Application.CutCopyMode = False
    Next
    Application.ScreenUpdating = True
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-25 18:25

¦^´_ 10# don4831

«Ü·PÁ±zªº¥Î¤ß ¦ýµo¥Í¤F¿ù»~°T®§ ¦pªþ¹Ï
    lineBegin = Worksheets("Data").Range("K4") '°_¦æ
    lineEnd = Worksheets("Data").Range("L4") '¨´¦æ
   ³o2¦æK4 L4¬O§Ú§ïªº ¨º¬O°t¦X§Ú¥Ø«e¨Ï¥Îªº¿é¤J¦ì¸m


    [attach]21803[/attach]
§@ªÌ: don4831    ®É¶¡: 2015-8-27 14:56

§Ú·Q§A²{¦b»Ý­nªº¡A¨Ã¤£¥u¬O³æ¯Âªºµ{¦¡¶}µo¡A¦Ó¬O¦p¦ó¨Ï¥Î¦³­­ªº¨t²Î¸ê·½«Ø¸m¤j¶qªº¸ê®Æ¡C
³o¬Oº¡°ª¶¥ªº°ÝÃD¸Ñ¨M§Þ¥©¡AµLªk²Ó»¡¡A¥u¯à´£¨Ñ¹ê¨Ò¡C
±N¿ý»sªº¥¨¶°½G¨­¡A¥¦¨Ï¥Îªº¨t²Î¸ê·½ÁÙ¬O«Ü°ª¡A
¥Ø«e¦b§ÚªºÀô¹Ò¤U¡A²£¥Í1000µ§¥ª¥k¤§¸ê®Æ¡A¨Ï¥Î¸ê·½¤Î°õ¦æ®Ä¯à©|¥i¡A
­Y¬O­n²£¥Í3200µ§ªº¸ê®Æ¡A¯Ó¥Î¬ù20¤À30¬í¤§«á¡A·|¥X²{°T®§¡G¡i°O¾ÐÅ餣¨¬¡j¡C
¥Î§Úªºµ{¦¡¡A§Ú¬O¥H1000µ§¬°³B²z³æ¦ì¡A¯Ó¥Î¬ù07¤À²£¥Í64000µ§¸ê®Æ¡A¥¿±`µ²§ô¡C
´£¿ô¡Gxls¤@­Ó¤u§@ªí³Ì¦h¥u¯à¦³65536µ§¸ê®Æ¡C
½Ð¦b¡mData¡n¤u§@ªí¤§I4¤ÎJ4Àx¦s®æ¿é¤J°_©l¦C¤Î²×¤î¦C¡C

Sub copyForNext()
    Rem buffer = 999¡G¨C1000µ§¬°1­Ó³B²z³æ¦ì
    Application.ScreenUpdating = False
    Call clearRow '²M°£Â¸ê®Æ
    buffer = 999
    lineBegin = Worksheets("Data").Range("I4") '°_¦æ
    lineEnd = Worksheets("Data").Range("J4") '¨´¦æ
    For i = 1 To 10
        Worksheets("ªR" & i).Activate
        Rows(2).Copy
        For j = lineBegin To lineEnd
            k = j + buffer
            Rows(j & ":" & k).Select
            Selection.PasteSpecial Paste:=xlPasteAll
            Selection.Copy
            Selection.PasteSpecial Paste:=xlPasteValues
            j = k
        Next
        Rem ¨ú®ø½Æ»s¼Ò¦¡
        Application.CutCopyMode = False
    Next
    Application.ScreenUpdating = True
End Sub

Sub clearRow()
    Worksheets(Array("ªR1", "ªR2", "ªR3", "ªR4", "ªR5", "ªR6", "ªR7", "ªR8", "ªR9", "ªR10")).Select
    Rows("3:" & Rows.Count).Select
    Selection.Clear
    '¥H¤U°Ê§@¡A¥u¬O²M°£¥ý«eªº¿ï¾Ü¡A¥H§K¤H¤u­n¥h¨ú®ø¿ï¾Ü¡C
    Range("A1").Select '¥Øªº¡G¥ý«e¿ï¾Ü°Ï°ìªº¤Ï¼v¡A¥u¯d¿ï¾Ü"A1"¤§Àx¦s®æ
    Worksheets("ªR1").Select '¥Øªº¡G¥ý«e¿ï¾Ü¤Q­Ó¤u§@ªí¡A¥u¯d¤@­Ó¿ï¾Ü"ªR1"¤§¤u§@ªí
End Sub

[attach]21814[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-27 16:42

¦^´_ 12# don4831
¥i°õ¦æ§¹²¦ ¦ý²Î­pµ²ªG¿ù»~ ¤£ª¾¹D¨º­Ó¦a¤è¦³»~ §ÚÁÙ¦b§ä±z´£¨Ñªºµ{¦¡½X ¬Ý°ÝÃD¥X¦b¨ºùØ
ÁÂÁ±z¶O®É¶O¤OªºÀ°§U§Ú
§@ªÌ: don4831    ®É¶¡: 2015-8-27 17:35

¦^´_ 11# lcctno
½Ð½T»{¿é¤Jªº­È©M¸ê®Æ«¬ºA¬O§_¬°¼Æ¦r
§@ªÌ: don4831    ®É¶¡: 2015-8-27 17:40

¦^´_ 13# lcctno
§Ú¤]¥¿¦n­nÁA¸Ñ§Úªº¨t²Î¸ê·½¤§·¥­­¡A¥H«Kµ{¦¡¤§¶}µo¡A§Aªºµ{¦¡¥¿¦n¥i¥H¨ó§U§Ú¶i¦æ¡AÁÂÁ¡C
§@ªÌ: lcctno    ®É¶¡: 2015-8-27 17:42

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-27 17:44 ½s¿è

¦^´_ 12# don4831

§ä¨ì­ì¦]¤F
°õ¦æ²Ä3~1002¦C®É¥¿±`
·í°õ¦æ²Ä1003~2002¦C®É ´N¤£¥¿±`¤F ¬Ý¨ìªº¬O¶K¤Wªº­È»P °õ¦æ²Ä3~1002¦C¤§­È¬Û¦P
·í°õ¦æ²Ä2003~3002¦C®É ¦P¼Ëµ²ªG ¬Ý¨ìªº¬O¶K¤Wªº­È»P °õ¦æ²Ä3~1002¦C¤§­È¬Û¦P
À³¸Ó¥H¤U¤]·|¬O¦P¼Ëªºµ²ªG
§Úª¾¹DÀ³¸Ó¬O¶Kªº­È¿ï¿ù¥Ø¼Ð §Ú·QÁÙ¬O³Â·Ð±z°£¿ù §Ú¹ê¦b¬O¤£·|­×§ï³o»ò²`ªº°ÝÃD ÁÂÁ±z¤F
§@ªÌ: lcctno    ®É¶¡: 2015-8-27 21:26

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-27 21:34 ½s¿è

¦^´_ 12# don4831

Sub copyForNext()
    Application.ScreenUpdating = True '¦]¬°­n¬Ý°Ê§@¬O§_¥¿½T
    'Call clearRow '²M°£Â¸ê®Æ ¬Ý¯à¤£¯à¥u²M°£·í¤U­n°õ¦æªº¦a¤è §_«h¤§«e¤§­È´N³Q²M°£¤F Åܦ¨¥²¶·­n±qÀY°õ¦æ ¨º´NµLªkµ²¬Ù³B²z®É¶¡(¦]¬°¨C¶g¼W¥[©ó¤u§@­¶"Data"¤§¦C¼Æ¥u¦³¤Ö¼Æ´X¦C)

    lineBegin = Worksheets("Data").Range("K4") '°_¦æ §Ú¥Ø«e¨Ï¥Î¤§¦ì¸m
    lineEnd = Worksheets("Data").Range("L4") '¨´¦æ §Ú¥Ø«e¨Ï¥Î¤§¦ì¸m
    buffer = Worksheets("Data").Range("M4")
    Rem buffer = ¤u§@­¶"Data"¤ºM4¤§­È ¬°1­Ó³B²z³æ¦ì
  ¤è«K°£¿ù ¤Î°t¦X¥¼¨Ó¨C¶g¤p¶q¼W¥[ªº"Data"  ¥i´î¤Ö°õ¦æ®É¶¡
   
    For i = 1 To 10
        Worksheets("ªR" & i).Activate
        Rows(2).Copy
        For j = lineBegin To lineEnd
            k = j + buffer - 1
            Rows(j & ":" & k).Select
            Selection.PasteSpecial Paste:=xlPasteAll
            Selection.Copy
            Selection.PasteSpecial Paste:=xlPasteValues
            j = k
        Next
        Rem ¨ú®ø½Æ»s¼Ò¦¡
        Application.CutCopyMode = False      
    Next
    Application.ScreenUpdating = True

    'Âk¦ì¨Ãµ²§ôSub
    Sheets("Data").Select

    End Sub
§@ªÌ: lpk187    ®É¶¡: 2015-8-27 23:11

¦^´_ 17# lcctno

¬JµM³£¬O¦V¤Ucopy¥i¤£¥u½Æ»s¡B¶K¤W
¦ó¤£¦Ò¼{¦Û°Ê¶ñº¡AutoFill
  1. Sub xx()
  2. Dim j4%
  3. j4 = Sheets("DATA").[j4]
  4. For i = 1 To 10
  5.     With Sheets("ªR" & i)
  6.         dl = .[a65536].End(xlUp).Row
  7.         If j4 <> dl Then .Rows(dl & ":" & dl).AutoFill _
  8.         Destination:=.Rows(dl & ":" & j4), Type:=xlFillDefault
  9.     End With
  10. Next
  11. End Sub
½Æ»s¥N½X

§@ªÌ: lcctno    ®É¶¡: 2015-8-28 07:19

¦^´_ 18# lpk187
ÁÂÁ±zªº«Øij
¦pªG¨Ï¥Î¦Û°Ê¶ñº¡¨ì²×¤î¦C ¨º7000¦C¬Æ¦Ü10000¦C  ¥i¯à¨S¦³´X¥x¹q¸£¯à¶¶§Q°õ¦æ§¹¦¨ ¦]¬°¤Ó¦û¹q¸£¸ê·½ ¥B¨C¦¸³£±o®ö¶O«Ü¦h®É¶¡ ¥u¬°¤F¦b¤À­¶"Data"¤¤¼W¥[¼Æ¦Cªº¸ê®Æ ¦Ó¥²¶·¥þ³¡¦A¹Bºâ¤@¦¸ ¥B§¹¥þ¨S¦³¿ï¾Ü©Ê
§@ªÌ: don4831    ®É¶¡: 2015-8-28 09:52

¦^´_ 17# lcctno

¥ý³B²z²Ä¤@­Ó°ÝÃD¡G
'Call clearRow '²M°£Â¸ê®Æ ¬Ý¯à¤£¯à¥u²M°£·í¤U­n°õ¦æªº¦a¤è §_«h¤§«e¤§­È´N³Q²M°£¤F Åܦ¨¥²¶·­n±qÀY°õ¦æ ¨º´NµLªkµ²¬Ù³B²z®É¶¡(¦]¬°¨C¶g¼W¥[©ó¤u§@­¶"Data"¤§¦C¼Æ¥u¦³¤Ö¼Æ´X¦C)
½Ð°Ý¡G§A©Ò¿×ªº·í¤U¬O¤°»ò¡H§A¤W¦¸´£¨ì­n¦Û²Ä3¦æ°_²M°£¸ê®Æ¡A§Ú¥u¬Ocall¥¦¡A¥H§K·s¸ê®Æ¤£¤À¡C
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 10:03

¦^´_ 20# don4831
"·í¤U" ¬O«ü¥u­n²M°£¥¿­n¶K­È¤§°Ï°ì ¤]´N¬O»¡¨ä¾l¤§«eªº­È¤£­n³Q²M°£
ÁÂÁ±zªº¥Î¤ß
§@ªÌ: don4831    ®É¶¡: 2015-8-28 10:21

§Ú¬ã§P§A»Ý­nªºÀ³¬O¡G
Sub clearRow()
    Worksheets(Array("ªR1", "ªR2", "ªR3", "ªR4", "ªR5", "ªR6", "ªR7", "ªR8", "ªR9", "ªR10")).Select
    lineBegin = Worksheets("Data").Range("K4") '°_¦æ
    Rows(lineBegin & ":" & Rows.Count).Select '¦Û§A«ü©wªº°_¦æ²M¨ì³Ì«á
    Selection.Clear
    Range("A1").Select
    Worksheets("ªR1").Select
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 10:30

¦^´_ 22# don4831
¨S¿ù ´N¬O³o¼Ë §Ú¥Ø«e§G§½±¡§Î¦p¤U¹Ï


[attach]21833[/attach]
§@ªÌ: lpk187    ®É¶¡: 2015-8-28 11:13

¦^´_ 19# lcctno


    §A¨Sª`·N§Ú¼gªºµ{¦¡¡C¥u¦³À°§A¶ñº¡¨C¶g»Ý¶ñº¡ªº´X¦æ¡C¦Ó¥B©Ò»Ý®É¶¡¸û¤Ö¡A´Nºâ¶ñº¡¦Ü65536³£OKªº
j4 = Sheets("DATA").[j4]''¬°²×¤î¦æ
dl = .[a65536].End(xlUp).Row¬°³o¶gªº¶}©l¦æ¡C
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 11:27

¦^´_ 24# lpk187
ÁÂÁ±z §Ú¤£¬O¨S¦³¬Ý ¦Ó¬O¬Ý¨ìªº¤º®e »P§Ú«Ü§Cµ{«×ªº"vba¯à¤O" ³y¦¨§Úªº»{ª¾»P¹ê»Ú­è¦n¬Û¤Ï (¬Ý¤£À´µ{¦¡½X ÀY«Ü¤j)
§Ú¯uªº¥uª¾¹D¸Ó¨BÆJ¸Ó«ç»ò¶i¦æ ¦ý«o¤£·|¼gµy·L½ÆÂøªºVBA ÁöµM±z¦³´£¨Ñµ{¦¡»yªk ¦ý¹ï¬Ý¤£À´ªº¤H ¹ê¦b¬O¥u¯à»¡ÁnÁÂÁ±z ¦]¬°ÁÙ¬O¤£ª¾¹D¸ÓÂ\¦b¨ºùØ  ....
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-28 12:23

¥ú¡e½Æ»s¡D¶K¤W¡f´N­n¯Ó¶O¤j¥b¤Ñ®É¶¡¡A¤×¨ä¤å¦r©Î¤½¦¡§ó¯Ó®É¡A
¨Ï¥Î°}¦Cª½±µ¹Bºâ¨ú¥Xµ²ªG¦A¶K¤J¡A¦]§PÂ_­È¥u¦³¢¯¤Î¢°¡A¶K¤J®ÉÁÙºâ§Ö¡A
Áö¬O³Ì°ò¥»ªº¡e°}¦C¡Darray¡f¹B¥Î¡A¦ý¹ïªì¾ÇªÌ¤]»á¦³Ãø«×¡A®¤µLªk¸Ñ»¡¡A°Ñ¦Ò§Y¥i¡G
[attach]21834[/attach]
¡@
­Y¸ê®Æ¤Ó¦h¡A¥i¯à³y¦¨°O¾ÐÅ餣¨¬°ÝÃD¡A¸Õ¸Õ¬Ý¡I
§Ú¥u´¡ªá¡A¦¹½×¾Â¦UªO¥D¬Ò¬O±M·~°ª¤â¡A¥i½Ð¨D¨ä¨ó§U¡I
¡@
Sub ¤ÀªR()
Dim Srr, Sht As Worksheet, Arr, Brr, Crr, X, Y, Z, R, TM
Dim i&, j&, k%, M, Mrr(1 To 2560, 1 To 2), S&, SU&

TM = Timer
R = [data!C65536].End(xlUp).Row
Arr = [Data!C1:D1].Resize(R)
X = [Data!I4]: If X < 2 Then X = 2
Y = [Data!J4]: If Y > R Then Y = R
Z = Y - X + 1: If Z <= 0 Then Exit Sub

ReDim Crr(X To Y, 1 To 256)
Application.ScreenUpdating = False
For i = 1 To 10
    Set Sht = Sheets("ªR" & i)
    Brr = Sht.Rows(1)
    For k = 1 To 256
        M = M + 1
        For j = X To Y
            If Brr(1, k) <= Arr(j, 1) And Brr(1, k) >= Arr(j, 2) Then S = 1
            Crr(j, k) = S: SU = SU + S: S = 0
        Next j
        Mrr(M, 1) = Brr(1, k):  Mrr(M, 2) = SU:   SU = 0
    Next k
    Sht.UsedRange.Offset(1, 0).ClearContents
    With Sht.[A2].Resize(Z, 256)
         Sht.Rows(2).Copy .Cells
         .Value = Crr
    End With
Next i

Sheets("µ²ªG").[A3:B3].Resize(M) = Mrr
MsgBox Timer - TM
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 12:53

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-28 12:55 ½s¿è

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

¬O¯à°õ¦æ¥B¶È¶È¼Æ¬í ¤]¤Ó§Ö¤F ¦ý ¥X¨Óªº­È¿ù»~(¥Ø«eªÑ»ù²Ö­pµo¥Í²v=100%) §Ú¨S¯à¤O¤F¸Ñ³o»ò²`ªº»yªk ¬GµLªk°£¿ù

   

[attach]21836[/attach]


[attach]21837[/attach]

µo¥Í²v=100%
[attach]21838[/attach]
§@ªÌ: azrael19    ®É¶¡: 2015-8-28 13:58

§A¥i¥H±N¼Æ¾Ú¶K¤W¨Ã­×§ïI4¤ÎJ4¤é´Á½d³ò¸Õ¸Õ¬Ý[µ²ªG]¤u§@ªí¹Bºâ¬O§_¥i¥H²Å¦X§A¹w´Á¡C
¥ý»¡ªþÀɨ䣬O¥Î±z©Ò´Á±æªº¤è¦¡¥h­×§ï¡A¹Bºâµ²ªG¥i¯à¤]¤£¬O§A·Q­nªºµ²ªG¡A¶È¨Ñ°Ñ¦Ò...
[attach]21839[/attach]
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-28 14:01

µ{¦¡¥u¨ú±o¦UªÑ»ù°Ñ¼Æªº²Å¦X¦¸¼Æ,¨Ã¿é¥X¦Ü¡eµ²ªG¡fªíªº¢Ï¢ÐÄæ¡A
¦Ü©ó¢Ñ¢ÒÄæ¦p¦ó­pºâ¡eµo¥Í²v¡f¡A¶·¦Û¦æ¥h®M¤½¦¡¡I
§@ªÌ: azrael19    ®É¶¡: 2015-8-28 14:51

¦^´_ 27# lcctno


§A¥i¥H±N¼Æ¾Ú¶K¤W¨Ã­×§ïI4¤ÎJ4¤é´Á½d³ò¸Õ¸Õ¬Ý[µ²ªG]¤u§@ªí¹Bºâ¬O§_¥i¥H²Å¦X§A¹w´Á¡C
¥ý»¡ªþÀɨ䣬O¥Î±z©Ò´Á±æªº¤è¦¡¥h­×§ï¡A¹Bºâµ²ªG¥i¯à¤]¤£¬O§A·Q­nªºµ²ªG¡A¶È¨Ñ°Ñ¦Ò...
­è­è28#µoªº¤½¦¡¥u¯àºâ¨ì²Ä310¦C¡A³o¬O­×¥¿ÀÉ
[attach]21841[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 15:40

¦^´_ 28# azrael19
·PÁ±zªº´£¨Ñ ¦ýùØ­±¨S¥ô¦ó¨ç¼Æ
µ²ªG·íµM¨S¦³§ïÅÜ



[attach]21843[/attach]

[attach]21844[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 15:44

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

ÁÂÁ±z ¦ý¨º¤£¬O§Ú­nªº §Ú¥Ø«e³£¯à«Ü¥¿±`¥BÀɮפ]Åܪº«Ü¤p ¥u¬O·Q§â¥¦§Ë±o§ó¦³¤H©Ê¤Æ
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 16:29

¦^´_ 30# azrael19
¯uªº¬O°ª¤â ­ì¨Ó¬O¥Î¨ç¼Æ¼gªº §ÚÁÙ¥H¬°±zªºvba§Ñ¤F¦s­ìÀɮפº
¦ýµ²ªG¬O¤£¤Ó¤@¼Ë? À³¸Ó¬O¤ñ¹ï¤è¦¡¤£¦P³y¦¨ªº §Ú¦³±N¤ñ¹ï¤§¨ç¼Æ¼g¦bªþµù¤º  ·PÁ±z  ±z¨ºÀÉ°õ¦æ³t«×¶W§Öªº §Æ±æ±z¯à§ä¥X­ì¦]

³o¬O§Úªº¨Ï¥Î²{ª¬
[attach]21845[/attach]


¤w¸g¥[¤Wdata¤§ÀÉ®×
[attach]21846[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 16:59

¦^´_ 30# azrael19

¥ý»¡Án :¹ï¤£°_
°ª¤â±zªºOK ¬O§Ú¨S¦³§¹¥þ°õ¦æ§¹ (¦³§ó§ï¶¡¶Z=±z³]ªº­È) ¦ý§Ñ¤F°µ¾ã®Mªº¤ñ¹ï ©Ò¥H¤~·|¼Æ¾Ú¤£¦P ¤§«e¦^¶Ç©ó±z¤§µ{¦¡ °õ¦æµ²ªG»P§Úªº§¹¥þ¬Û¦P
§Ú¦A¦h¸Õ¤@¨Ç¸ûªø®É¶¡ªº´ú¸Õ §Ú·QÀ³¸Óµ²ªG¤]·|¬Û¦P
¯uªº¨S·Q¨ì¥Î¨ç¼Æ´N¥i¥H§¹¦¨



[attach]21847[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 18:42

¦^´_ 30# azrael19

¥Ø«e¦³µo²{­Ó«Ü¤pªº°ÝÃD ¥u¬O§Ú¨S¯à¤O­×§ï¨º»ò½ÆÂøªº¨ç¼Æ
¥Ø«e¸g¹L¼ÆºØ¤è¦¡ªº¤ñ¹ï "data"¤º¤§Á`¼Æ »P"µ²ªG"¤º¤§µo¥Í¦¸¼Æ ³£§¹¥þ¤@¼Ë ¦ý²Î­p«á¤§"¥Ø«eªÑ»ù²Ö­pµo¥Í²v"¦³¤p³\ªº®t¶Z ¥i¯à¬Oºâ¦¡¤£¦P©Ò­P
¥i§_³Â·Ð±z±N"¥Ø«eªÑ»ù²Ö­pµo¥Í²v" §ï¦¨¦pªþ¥ó¤W©ñªº¤è¦¡ ¨Æ¹ê¤W§Ú¤]µo²{¤§«e§Ú¥Îªº­pºâ"¥Ø«eªÑ»ù²Ö­pµo¥Í²v"ªº¤è¦¡¤£¤Ó¦n ÁÙ¦n³£¥u¦³¤p¼ÆÂI¥H¤Uªº»~®t

ÁÂÁ±zÀ°¤F§Úªº¤j¦£



   [attach]21848[/attach]
§@ªÌ: azrael19    ®É¶¡: 2015-8-28 22:03

¦^´_  azrael19

¥Ø«e¦³µo²{­Ó«Ü¤pªº°ÝÃD ¥u¬O§Ú¨S¯à¤O­×§ï¨º»ò½ÆÂøªº¨ç¼Æ
¥Ø«e¸g¹L¼ÆºØ¤è¦¡ªº¤ñ¹ï "da ...
lcctno µoªí©ó 2015-8-28 18:42


¸Õ¸Õ¬Ý...
[attach]21859[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-28 23:14

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-28 23:15 ½s¿è

¦^´_ 36# azrael19
·PÁ±z ¥Ø«e¥u´ú¸Õ2­Ó¤£¦P±Ú¸sªºdata §Ú«Ü°ª¿³ µ²ªG"§¹¥þ¥¿½T" ±zªº¨ç¼Æ¯uªº¤Ó±j¤F

­Y¤è«Kªº¸Ü ¥i§_³Â·Ð¨Ï¥Î³Ì¥Õ¸Üªº¤è¦¡ §i¶D§C¯àªº§Ú ±z¦b"µ²ªG"¤À­¶¤º ¨º3­Ó¨ç¼Æªº·N«ä

°Ï¶¡=COUNTA(A:A)-1  ­È¬O¥¿½T ¦ý¬°¦ó¬O-1 ¦Ó¤£¬O-2( ¦]¬°§Ú¬Ý¨ì¦³2­Ó¬O«D¼Æ¦r¦C) ?

¸ê®Æ¦C_³Ì°ª»ù '=OFFSET(INDIRECT(ADDRESS(IF(Data!$I$6="",2,Data!$I$6),3,,,"Data")),,,IF(Data!$J$6="",COUNTA(INDIRECT("Data!$A:$A"))-1,Data!$J$6-IF(Data!$I$6="",2,Data!$I$6)+1),) ³o­Ó§Ú§¹¥þ¤£ª¾¹D¬O¤°»ò

¸ê®Æ¦C_³Ì§C»ù '=OFFSET(¸ê®Æ¦C_³Ì°ª»ù,,1,,) ³o­Ó§Ú¤]§¹¥þ¤£ª¾¹D¬O¤°»ò

ÁÂÁ±z¤F
§@ªÌ: azrael19    ®É¶¡: 2015-8-29 09:04

¦^´_  azrael19
·PÁ±z ¥Ø«e¥u´ú¸Õ2­Ó¤£¦P±Ú¸sªºdata §Ú«Ü°ª¿³ µ²ªG"§¹¥þ¥¿½T" ±zªº¨ç¼Æ¯uªº¤Ó±j¤F

­Y ...
lcctno µoªí©ó 2015-8-28 23:14


1.COUNTA¬O­pºâ½d³ò¤¤¤£¬OªÅ¥ÕªºÀx¦s®æ¼Æ¥Ø¡A-1´N¬O´î±¼Àx¦s®æA2¼ÐÃD«ü¼Æ(ªÑ»ù)¡C
2.¨ä¹ê²Õ¦X¤½¦¡¬Ý¤£À´®É§A¥i¥H¥ý¹Á¸ÕµÛ¤À©î¦¨¤@¤p¬q¤è¦¡¨Ã¿é¤JÀx¦s®æ¬Ý¿é¥Xµ²ªG´N«Ü¦n²z¸Ñ¡A¨Ò¦p:
(a)
  ¤½¦¡: =ADDRESS(8,6) ´Nµ¥©ó¦r¦ê "$F$8"¡C
  ¤½¦¡: =ADDRESS(8,6,,,"Data") ´Nµ¥©ó¦r¦ê "Data!$F$8"¡C
(b)·íData!I6 ­È¬O18®É:
  ¤½¦¡: =ADDRESS(Data!$I$6,3,,,"Data") ´Nµ¥©ó¦r¦ê "Data!$C$18"¡C
  ¤½¦¡: =INDIRECT(ADDRESS(Data!$I$6,3,,,"Data")) ´N¬O°Ñ·ÓÀx¦s®æ Data!C18¡C
(c)·íData!I6 ­È¬O7¡AData!J6­È¬O306
  ¤½¦¡: =OFFSET(INDIRECT(ADDRESS(Data!$I$6,3,,,"Data")),,,Data!$J$6-Data!$I$6+1,)
  ´N¬O«ü¦VÀx¦s®æ½d³ò Data!C7:C306¡C
(d)¤½¦¡¤¤¨Ï¥Î¨ìIF¨ç¼Æ³¡¤À´N¬O°w¹ïData!$I$6©ÎData!$J$6¬OªÅ¥Õ®Éªº¨Ò¥~³B²z¤è¦¡¡C
3.¨Ò¦p¦Û©w¦WºÙ¸ê®Æ¦C_³Ì°ª»ù¬O«ü¦VÀx¦s®æ½d³ò Data!C7:C306
  ¤½¦¡: =OFFSET(¸ê®Æ¦C_³Ì°ª»ù,,1,,) ´N¬O«ü¦VÀx¦s®æ½d³ò Data!D7:D306

°Ñ¦Ò¸ê®Æ:
COUNTA
ADDRESS
INDIRECT
OFFSET
µû¦ô­È¤½¦¡
¦Û­q¦WºÙ
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 09:19

¦^´_ 36# azrael19
¸g´ú¸ÕªÑ²¼ ¦³µo²{¤u§@­¶"Data"¤ºH2¤§Á`¼Æ¦³»~
¸g·¥¤p¤Æ¨ÓÀ˵ø µo²{±zº|¤F±Nµ¥©ó¦C¤§­È¨ú¼Ë ¦pªþ¥ó ¦³µµ¦âªº¦a¤è½Ð¬Ý¤@¤U
¬Q¤Ñ§Ú¥u´ú¸Õ«ü¼Æ¨Ã¨Sµo²{»P§Úªº²Î­p¦³²§ ¦ý¤µ¤Ñ´ú¸ÕªÑ»ù®Éµo²{¤F³o°ÝÃD
³Â·Ð½Ð±z±N¨ç¼Æ­×§ï¤@¤U ÁÂÁ±z

[attach]21861[/attach]
§@ªÌ: azrael19    ®É¶¡: 2015-8-29 09:38

¦^´_  azrael19
¸g´ú¸ÕªÑ²¼ ¦³µo²{¤u§@­¶"Data"¤ºH2¤§Á`¼Æ¦³»~
¸g·¥¤p¤Æ¨ÓÀ˵ø µo²{±zº|¤F±Nµ¥©ó¦C¤§­È ...
lcctno µoªí©ó 2015-8-29 09:19


±Nµ²ªG¤u§@ªí A4 ¤½¦¡¥Ñ=A3+Data!$L$4§ï¦¨=ROUND(A3+Data!$L$4,2)¤U©Ô¦Û°Ê¶ñº¡¤½¦¡
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 11:58

¦^´_ 40# azrael19

¬Ý°_¨Ó«Ü§´·í¤F
§Ú¬Ý±z­n¨D§ïªº³¡¤À ¬O4±Ë5¤J ¬Ý°_¨Ó¨º¨Ç®æ¤º­È¨Ã¨S¦³§ïÅÜ ¦ý¬°¦ó¤ñ¹ïµ²ªG´N¥¿½T¤F???
¥t¥~ ¬°¦ó§Ú¥u­n¶}±Ò±zªºÀÉ®× §Ú¥¼°µ¥ô¦ó°Ê§@«KÃö¤W ¥¦´N·|´£¥Ü¸ê®Æ¤w§ó§ï °Ý§Ú­n¤£­n¦sÀÉ???
¬°¦ó±zªºÀɮ׶W¯Å¤p ¥B°õ¦æ°_¨Ó¤]«Ü§Ö(¸ò§Ú¼gªº¤ñ) ?
±z¯uªº¬O°ª¤â¤¤ªº°ª¤â

ÁÂÁ±z¤F
§@ªÌ: azrael19    ®É¶¡: 2015-8-29 14:23

¦^´_  azrael19

¬Ý°_¨Ó«Ü§´·í¤F
§Ú¬Ý±z­n¨D§ïªº³¡¤À ¬O4±Ë5¤J ¬Ý°_¨Ó¨º¨Ç®æ¤º­È¨Ã¨S¦³§ïÅÜ ¦ý¬°¦ó¤ñ¹ï ...
lcctno µoªí©ó 2015-8-29 11:58


1.¯BÂI¼Æ»~®t¡A½Ð°Ñ¦Ò https://support.microsoft.com/zh-tw/kb/214118
  ©Ò¥H¤]¥i¥H±N A4¤½¦¡§ï¦¨: =TRUNC(A3+Data!$L$4,2)¡A³o¬O±z­ì©lÀɩҨϥΪº¤è¦¡¡C
2.¨ä¹ê±z©Ò´£¨Ñªº-test% -.zip´N·|¤F¡A³o­Ó§Ú¤]¤£¤Óª¾¹D...
  (¥i¯à¥´¶}Àɮ׮ɪº¹Bºâ¶W¹L¤@©w¼Æ¶q½d³ò©Î¬O¨Ï¥Î¨ì¯S©w¥\¯à´N·|³o¼Ë¡A¨Ò¦p±zªº­ì©lÀɧڥu­n±NWebQuery²¾°£´N¤£·|°Ý¤F...)
3.¦]¬°¨Ï¥ÎªºÀx¦s®æ¤Ö¦ÛµM´N¤p¡A¹Bºâ¤Ö¦ÛµMµ¥«Ý®É¶¡´Nµu¡C

§Ú¤£¬O°ª¤â¡A¦pªG¦³±`¦b½×¾Âª¦¤å¡A¦P®É±Nª©¥D­Ìªº¦^Âп˦۰ʤⰵ¹L¤@¹M´N¥i¥H«Ü§Ö¾Ç¨ì³o¨Ç§Þ¥©¡A¥u¬O¥Î¬Ýªº¤j·§«Ü§Ö´N§Ñ¥ú¤F...
ÁÙ¦³§AÀ³¸Ó­n·PÁ¬O«e­±¦^Âбz°ÝÃDªº«e½ú¡A¦pªG¤@¶}©l´N¥ý±N¤½¦¡Â²¤Æ¦A¨Ó°Ý¦p¦ó¥ÎVBA½G¨­¡A¨º­Ó¹Bºâ³t«×·|¤ñ§Úµ¹§Aªº§Ö¦h¤F
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 14:52

¦^´_ 42# azrael19
·PÁ±zªº¥Î¤ß §Ú±q¨S¥¿¦¡ªº¤W¹LPC¬ÛÃöªº½Ò ¥u¬°¤F¦w¤ßªº§ë¸êªÑ²¼
©Ò¥H¤~¤gªk·Ò¿û ¥Î³Ì²³æ°ò¥»ªº¨ç¼Æ¼g¤F¼Æ­Ó"¤j¥¨³J"
¨º¨Ç§Ú¼gªº"¤j¥¨³J" ©~µM¦³³æ¤@ÀÉ´N¶W¹L700mb °õ¦æ°_¨Ó ÁÙ¯uºC ©Ò¥H¤]¬O¬°¤F±NÀÉ®×½G¨­¤~¨Ó³Â»¶®a±Ú¨D±Ï
¨Ó¨ì³Â»¶®a±ÚÁÙºâ¯uªº«Ü¨ü¯q ÁÂÁ±z¤j¤OªºÀ°§U§Ú ¯u¤ßªº·PÁ±z
±z»¡¥ÎVBA·|§ó§Ö? ±z§¹¦¨ªº¤w¸g«Ü§Ö¤F §ÚÁÙ¯u·Q¬Ý¬Ývba¯à§Ö¨ì¤°»òµ{«×
±z»¡¦pªG§Ú¦A¥Î±zÀ°§Ú§¹¦¨ªºÀɮצAµo¤@¦¸©« ·|¤£·|³Q¤H·í¦¨Äé¤ôµo©«?
§@ªÌ: azrael19    ®É¶¡: 2015-8-29 15:58

¦^´_  azrael19
·PÁ±zªº¥Î¤ß §Ú±q¨S¥¿¦¡ªº¤W¹LPC¬ÛÃöªº½Ò ¥u¬°¤F¦w¤ßªº§ë¸êªÑ²¼
©Ò¥H¤~¤gªk·Ò¿û ¥Î³Ì² ...
lcctno µoªí©ó 2015-8-29 14:52


ÁÙ¬O¤£­n¦n¤F¡A¥ý»¡§Ú¨S¦³´c·N±z¬Ý¤F¤d¸U§O»~·|
³o¸Ì¬OÅý¤j®a¾Ç²ß³¨³½ªº§Þ¥©¤Î¤À¨É¾Ç²ß¸gÅç¡A·í¤j®aµo²{§A¥u¬O·Q½Ð¤HÀ°§A³¨³½¡A«Ü§Ö§Aªº°ÝÃD´N±o¤£¨ì¥ô¦ó¦^ÂÐ...
°ò¥»¤Wµ¥§A¦³¯à¤O¬ÝÀ´«e­±¦^Âбz°ÝÃD«e½úªºµ{¦¡½X¡A¦A´£¥X°ÝÃD·|¤ñ¸û¾A·í¡C
ÁÙ¦³»P¥DÃDµLÃöªº¦^ÂдNºâÄé¤ô¡A§Ú²{¦bªº¦^ÂдNºâ¤F¡A©Ò¥H±z¤d¸U§O¦A¦^ÂЧÚ
§@ªÌ: ML089    ®É¶¡: 2015-8-29 16:53

¦^´_ 43# lcctno

data!J2 ¥i¥Hª½±µ±a¨ç¼Æ¤ñ¸û²³æ¤@¨Ç
=FORECAST(I2,OFFSET(µ²ªG!D1,MATCH(I2,µ²ªG!A:A,1),,-2),OFFSET(µ²ªG!A1,MATCH(I2,µ²ªG!A:A,1),,-2))


FORECAST(x,known_y's,known_x's)
X    ¬O±z­n¹w´ú¤@­Ó¼Æ­Èªº¸ê®ÆÂI¡C
Known_y's    ¬O¦]Åܼư}¦C©Î¸ê®Æ½d³ò¡C
Known_x's    ¬O¦ÛÅܼư}¦C©Î¸ê®Æ½d³ò¡C



­ì data!J2 ¤½¦¡
=IF(ISERROR(LOOKUP(I2,OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,),ROW(OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,)))),"--",IF(LOOKUP(I2,OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,),ROW(OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,)))>=µ²ªG!$E$2+2,1,VLOOKUP(I2,IF({1,0},OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,),OFFSET(µ²ªG!$D$3,,,µ²ªG!$E$2,)),2)+(I2-LOOKUP(I2,OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,)))*LINEST(OFFSET(INDIRECT("µ²ªG!D"&LOOKUP(I2,OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,),ROW(OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,))),1),,,2,),OFFSET(INDIRECT("µ²ªG!A"&LOOKUP(I2,OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,),ROW(OFFSET(µ²ªG!$A$3,,,µ²ªG!$E$2,))),1),,,2,))))
§@ªÌ: ML089    ®É¶¡: 2015-8-29 17:28

¦^´_ 43# lcctno

SUMPRODUCT¨ç¼Æ«ÜºC¡A»Ý´î¤Ö¨Ï¥Î
A3:A2562 ¤½¦¡½d³ò¤Ó¤j¨Ï¥Î­pºâÅܱo«ÜºC¡A¹ê»Ú¤~¨Ï¥Î¨ìA743

«Øij§ï¬°

µ²ªG!
A3 =IF(Data!N$2+Data!O$2*(ROW()-4) > Data!K$2, "", Data!N$2+Data!O$2*(ROW()-3))
B3 =IF(A3="",0,SUMPRODUCT((A3<=¸ê®Æ¦C_³Ì°ª»ù)*(A3>=¸ê®Æ¦C_³Ì§C»ù)))
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-29 18:58

¬°¦ó§Ú¥u­n¶}±Ò±zªºÀÉ®× §Ú¥¼°µ¥ô¦ó°Ê§@«KÃö¤W ¥¦´N·|´£¥Ü¸ê®Æ¤w§ó§ï °Ý§Ú­n¤£­n¦sÀÉ???
OFFSET,INDIRECT,NOW,TODAY....µ¥µ¥¨ç¼Æ, ³£·|³y¦¨³o­Ó´£¥Ü!

SUMPRODUCT­pºâ¤W¸Uµ§¸ê®Æ, ­YPCµ¥¯Å¤£°ª, ¤j³¡¥÷¥ú¶}±ÒÀÉ®×´N­nµ¥«Ü¤[,
¤S, ­Y¬O¬°[±`¾n]¤½¦¡, ²Î­p¨Ó·½ªí¥ô¤@Àx¦s®æ¨C¤@¦¸ÅÜ°Ê, §Y·|¶]¥X¡e¦Û°Ê­«ºâ¡f(«UºÙ:¥dÀÉ), «D±`¤£¤è«K,

¨Ï¥ÎVBA¥i¥H§ïµ½¥H¤W±¡ªp, ¯ÊÂI¬O¡G¼Æ¾ÚÅÜ°Ê«á, ¥²¶·¦A°õ¦æµ{¦¡, µLªkÀH®ÉÅã¥Ü°ÊºAµ²ªG!
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 19:13

¦^´_ 47# ­ã´£³¡ªL
§Æ±æ±z¦³¿ìªkÀ°§Ú ­Y¥i¥Hªº¸Ü ªþ¤W»¡©ú §Ú¤]«Ü·Q¾Ç

ªþ¤W¶Q¤H­Ìªº«ü¾É«á §¹¦¨ªºÀÉ®× §Æ±æ¯à¦h´£¨Ñ§ïµ½ªº¦a¤è ÁÂÁ±z


[attach]21864[/attach]
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-29 20:48

¥Î¤W¦¸VBA­×§ï¦p¤U¡]¥u¦C¥Xµ²ªGªí¢ÐÄ榸¼Æ¡A¨ä¥L¤£³B²z¡^¡G
[attach]21865[/attach]

Sub ¤ÀªR()
Dim Arr, Brr, Cunt&, Crr%(), R&, X&, Y&, TM, j%, k&, SU%
TM = Timer
R = [data!C65536].End(xlUp).Row
Arr = [Data!C1:D1].Resize(R)

X = Val([Data!I6]): If X < 2 Then X = 2
Y = Val([Data!J6]): If Y > R Then Y = R
If Y <= X Then Exit Sub

Cunt = 2560
ReDim Crr(1 To Cunt, 0)
Brr = [µ²ªG!A3].Resize(Cunt)
For j = 1 To Cunt
¡@¡@For k = X To Y
¡@¡@¡@¡@'If Brr(j, 1) >= Arr(k, 2) And Brr(j, 1) <= Arr(k, 1) Then SU = SU + 1 '§PÂ_¨â¦¸,³t«×¸ûºC
¡@¡@¡@¡@If Brr(j, 1) >= Arr(k, 2) Then If Brr(j, 1) <= Arr(k, 1) Then SU = SU + 1 '²Ä¤@±ø¥ó¦¨¥ß¦A§PÂ_²Ä¤G±ø¥ó,¸û§Ö
¡@¡@Next k
¡@¡@Crr(j, 0) = SU: SU = 0
Next j
[µ²ªG!B3].Resize(Cunt).Value = Crr
Application.Goto [µ²ªG!B3]
MsgBox Timer - TM
End Sub
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 21:45

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-29 21:47 ½s¿è

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

[attach]21867[/attach]

¥i¯à¬O§PŪªºµ{¦¡½X¤£¦P©Ò¦Ü ½Ð¬Ýªþ¥ó¤ºµµ¦âªº³¡¤À ¥Ñ©ó³o°õ¦æÀɬO¯à­nÅýªÑ²¼¤Î«ü¼Æ¨Ó¨Ï¥Î ÁٽжO¤ß¤F

ÁÂÁ±zªº¨¯³Ò


¦pªG°ò·Ç­È(¤ñ¸ûÂI) >= ¦C¤§³Ì§C»ù ¦P®É <= ¦C¤§³Ì°ª»ù ´Nµ¹ 1   
¤]´N¬O»¡¥u­n°ò·Ç­È(¤ñ¸ûÂI)¦³¦b°Ï¶¡¤º´Nµ¹1  
=IF(AND(°ò·Ç­È>=Data!D3,°ò·Ç­È<=Data!C3),1,"")
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-29 22:47

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-8-29 22:48 ½s¿è

Brr(j, 1) >= Arr(k, 2) °ò·Ç­È(¤ñ¸ûÂI) >= ¦C¤§³Ì§C»ù
Brr(j, 1) <= Arr(k, 1) °ò·Ç­È(¤ñ¸ûÂI) <= ¦C¤§³Ì°ª»ù
¡@
µ²ªGªíaÄæ¦]¦³¡e¯BÂI¼Æ¡f°ÝÃD¡A½Ð¨Ï¥Î=round(??,2)³B²z¡I
¡@
³Ì§C»ù¤p¤_¢¶ªº¥u¦³¥|µ§¡G²Ä¢·¢¯¢°¡ã¢·¢¯¢³¦C
2008/10/27        6.68        6.79        6.68
2008/10/28        6.29        6.48        6.23
2008/10/29        6.67        6.67        6.52
2008/10/30        6.50        7.11        6.50
­Y±q2008/11/21¡]²Ä¢·¢±¢¯¦C¡^©¹¤U²Î­p¡A«h°ò·Ç­È¢¶¥H¤UÀ³³£¬°¢¯¡A
­Y±q²Ä¢±¦C¦Ü¥þ³¡²Î­p¡AÁ`¼Æ¬°¡G89502

µ{¦¡½X¨Ã¤£Ãø¡A¦h¬Ý´X¦¸À³¥i¦Û¦æ­×§ï¡I
[attach]21868[/attach]
¡@
§@ªÌ: lcctno    ®É¶¡: 2015-8-29 23:32

¦^´_ 51# ­ã´£³¡ªL
±z³o¦¸ªºµ²ªG¬O¥¿½Tªº §Ú«Ü©_©Ç¤£ª¾¹D§Ú³oÃ䨺ùØ¥X°ÝÃD ³o¦¸°õ¦æªºµ²ªG¤S¸ò±z­×§ï¹Lªº¤@¼Ë §Ú±q¦­¤W´X¥G(¥u¦³µu¼ÈªºÂ÷¶}) ¤@ª½§¤¦b¹q¸£«e ¥i¯àÀY¸£¤£²M¿ô¤F §ÚÀY¯uªº¤j¤F ...
¬Ý¨ÓÁÙ¦³±o¦£¤F  
ÁÂÁ±zªºÀ°§U §Ú»¡¤@¤U§Úªº¤º¤ß¸Ü ¦³¤@¨ÇªF¦è¹ï©ó·|ªº¤H¨Ó»¡ »{¬°¬O«Ü²LÅ㪺 ¦ý¹ïªì±µÄ²ªÌ¯uªº¬O¤ñµn¤ÑÁÙÃø ½Ð­ì½Ì§ÚªºµLª¾ ¦]¦Ó³y¦¨±zªº§xÂZ ÁÂÁ±z¤F
§@ªÌ: lcctno    ®É¶¡: 2015-8-30 02:22

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-30 02:24 ½s¿è

¦^´_ 46# ML089

·PÁª©¤j¦A¦¸ªº´£¿ô
§Ú¥i¯à¦]¬°±q¬Q¤Ñ6ÂI¦h§Ë¨ì²{¦b
¤w¶W¹L20¤p®É¥¼¥ð®§
À³¸Ó¦Ñ¤H®aºë¯«µLªk­t²ü
10´X­ÓÀɮצb½G¨­
À³¸Ó¬O¦£¤¤¦³¿ù
³Â·Ð±z¬Ý³oÀɮ׬O§_¦p±z§iª¾ ¤Î¬O§_¤w¥¿½Tªº­×§ï¤F
ÁÂÁ±zªºÃö·R

§Ú¸ÓºÎ¤F ±ß¦w

[attach]21869[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-30 08:35

¦^´_ 51# ­ã´£³¡ªL
¥Î±zµ¹ªºÀÉ¥h¸Õ °ÝÃD§ó¦h ©Ò¥H§Ú´N¥Î§Ú³Ì«á¸g¹L¼Æ¦ì°ª¤â«ü¾É«á©Ò§¹¦¨ªºÀɮפU¥h¥[¤W±z¨ºvba¤uµ{½X
°õ¦æµ²ªGÁÙ¬OµLªk§¹¥þ§k¦X ¤£ª¾¹D¨ºùØ¥X°ÝÃD ³Â·Ð°ª¤âªº±zÀ°¦£¤ÀªR¤@¤U
ÁÂÁ±zªº·ÓÅU



[attach]21870[/attach]
§@ªÌ: lcctno    ®É¶¡: 2015-8-30 09:56

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

©êºp­è­èµo²{°e¿ùÀɤF
54¼Óªº¤£¹ï


    [attach]21871[/attach]
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-30 11:03

¦^´_ 55# lcctno


¡e°ò·Ç­È¡f¦³¤p¼ÆÂI¡A«Ü®e©ö³y¦¨¡e¯BÂI¼Æ¡f¡A¤w§iª¾¨Ï¥ÎROUND³B²z¡A
¨Ò¦p¡G¤½¦¡­pºâ«áªº¼Æ¾ÚÁöµMÅã¥Ü¡]¬Ý°_¨Ó¡^¬°¡G0.15¡A
¡@¡@¡@«ö¢Ô¢¸Àˬd¡A¹ê»Ú¬°0.149999999¡A
¡@¡@¡@¦³®É«ö¢Ô¢¸¡A¤´Åã¥Ü0.15¡A¦³¯BÂI¼Æ¦ý¦×²´¬Ý¤£¥X¨Ó¡A¡]µ²ªGªíA1917ªº8550.60¡A´N¬O³o¼Ë¡^¡A
¡@¡@¡@©¹©¹³y¦¨­pºâªº»~®t¡A³o¬OEXCELªº±J©R¡A
¡@¡@¡@©Ò¥H¡A¦³¤p¼Æªº¼Æ¾Ú¡A³Ì¦n¾i¦¨²ßºD¥[ROUND¥[¤u¤@¤U¡ã

¢Ï¢²¤½¦¡§ï¬°¡G
=IF(Data!K$4+Data!L$4*(ROW()-4) > Data!K$2, "", ROUND(Data!K$4+Data!L$4*(ROW()-3),2))¡@¤U¨ê¨ì©³
§@ªÌ: lcctno    ®É¶¡: 2015-8-30 11:16

¦^´_ 56# ­ã´£³¡ªL
¬Ý¨ÓÀ³¸Ó¬Ook¤F
§Ú¤§«e¦³¸Õ¹L ROUND(­ì¨Óªº¤º®e,2) µ²ªG½Æ»s¨ì©³ºÝªÅ¥Õ³B ´N¥X°ÝÃD¤F
¥H¤Î trunc 2¦ì¼Æ  µ²§ô³£¬O¤@¼Ë©³¤U³¡¤À¦³¶Ã½X
ÁÂÁ±zªº¥Î¤ßÀ°§U§Ú
½Ð°Ý¬°¦ó¦P¼Ëªº¼Æ¦r ¨ç¼Æ»Pvba «ç»ò·|¬Ý°_¬O¤£¤@¼Ëªº¤ñ¸û­È
¦³³Ò±z¤F ÁÂÁÂ
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-30 12:35

¦^´_ 57# lcctno

=ROUND(IF(Data!K$4+Data!L$4*(ROW()-4) > Data!K$2, "", Data!K$4+Data!L$4*(ROW()-3)),2)
³o¤½¦¡¨ì³Ì«á·|¦³¡e¿ù»~­È#Value¡f¡A¬O¦]¹JªÅ¦r²Å""¡A¤S±NROUND©ñ¦b³Ì¥~°é¡A¤U¤@¦¡´N¢Ý¢Ù¡A
=IF(Data!K$4+Data!L$4*(ROW()-4) > Data!K$2, "", ROUND(Data!K$4+Data!L$4*(ROW()-3),2))

excel¤½¦¡¤Îvba¥i¯à¥Îªº¡eºë·Ç«×¡f¤£¦P¡A©Ò¥H¦³®É¦P¤@¼Æ­È²£¥Í¤£¦Pµ²ªG¡A
¥HA1917¬°¨Ò¡A¤½¦¡¡G=IF(Data!K$4+Data!L$4*(ROW()-4) > Data!K$2, "", Data!K$4+Data!L$4*(ROW()-3))

F1917¤½¦¡¡G=A1917=8550.6¡@¡÷µ²ªG¡@TRUE

Sub test()
¡@MsgBox [µ²ªG!A1917] = 8550.6¡@¡@ '¡÷°õ¦æµ²ªG¡GFALSE
End Sub

³o¤£¬O§Úªº±M·~¡A®¤µLªk¦A²`¤J¸Ñ»¡¡ã

¡@
§@ªÌ: Scott090    ®É¶¡: 2015-8-30 14:02

¦^´_ 57# lcctno

­pºâ¤£¤@­Pªº¦a¤è¬O [Data!D4960] 8550.60¡A¤ñ¹ï [µ²ªG!A1917] ªº 8550.60
­è¦n¬O¦b¤ñ¹ïªº Ãä¬É­È ¦Ó³y¦¨¯BÂIºâ¼Æªº°ÝÃD
°²¦p VBA µ{¦¡ªº¤ñ¸û¦¡°µ¤@­Ó³B²z´N¥i¥H¤F
Sub ¤ÀªRµo¥Í¦¸¼Æ()
      Dim Arr, Brr, Cunt&, Crr%(), R&, X&, Y&, TM, j%, k&, SU%
      Const Zero = 0.00000001   '³o¬O¤@­Ó«Ü¤p¦Ó¤£¼vÅT  "¹ê¥Î¤Wªººë«×"  ªº¼Æ­È
..............
    ..........
  '    If Brr(j, 1) >= Arr(k, 2) Then If Brr(j, 1) <= Arr(k, 1) Then SU = SU + 1
'§ï¬° ¡G
     If Brr(j, 1) >= Arr(k, 2) - Zero Then If Brr(j, 1) <= Arr(k, 1) + Zero Then SU = SU + 1

..................
.........
End sub

¥H¤W½Ð°Ñ¦Ò
§@ªÌ: ML089    ®É¶¡: 2015-8-30 18:08

¦^´_ 53# lcctno


­ì¨Óªº¤]¬OOK¡A­×§ï¤@¨Ç¤½¦¡·Pı§Ö¤@¨Ç¡C

[attach]21874[/attach]
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-30 19:39

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-8-30 19:50 ½s¿è

¦^´_ 60# ML089


¥þ°ì°}¦C½T¹ê¸û§Ö¬Ù¸ê·½!

MMULT¦bXP+OFFICE2000¤U, ³Ì¦h¥i¥Î¨ì5643¦C, ¦A¦h´N#VALUE,
¤£ª¾¨ä¥Lª©¥»¥i¥Î¨ì¦h¤Ö¦C?


¡Ä¡Äµn¿ý®É³£¤Ä¿ï¤F¡e¦Û°Êµn¿ý¡f¡A¨C¦¸¶i¨Ó½×¾ÂÁÙ­n¦A¿é¤J±b¸¹±K½X¡A¯u¤£¤è«K¡I
¡@
§@ªÌ: ML089    ®É¶¡: 2015-8-30 19:57

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


MMULT ¦b2007ª©
1. ´ú¸Õ 1000000X2 ¤Î 2X1000000 ³£¥i¥H¶]
2. ´ú¸Õ 4000X4000¥H¤W´N·|¥X²{¤½¦¡¸ê·½¤£¨¬ªº°T®§
§@ªÌ: ML089    ®É¶¡: 2015-8-30 20:01

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

¡Ä¡Äµn¿ý®É³£¤Ä¿ï¤F¡e¦Û°Êµn¿ý¡f¡A¨C¦¸¶i¨Ó½×¾ÂÁÙ­n¦A¿é¤J±b¸¹±K½X¡A¯u¤£¤è«K¡I

§Úªº·|¦Û°Êµn¿ý(WIN10+CHROME)
¦ý¤@¬q®É¶¡(¦n¹³¤@­Ó¬P´Á§a)´N·|­n¨D­«·sµn¿ý¡A­Y§A¤£±`¤W¨Ó´N·|·Pı¨C¦¸µn¿ý³£­n­«·s¿é¤J±b¸¹±K½X¡C
§@ªÌ: lcctno    ®É¶¡: 2015-8-30 22:59

¥»©«³Ì«á¥Ñ lcctno ©ó 2015-8-30 23:00 ½s¿è

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

½Ð°Ý¦³¨S¦³¿ìªkÅý§Ú³oÀÉ®× (°£¤F©î³æ¥~)
¯à°÷©ó¹Bºâ§¹«á ´N±N¬Y­Ó¥\¯àÃö±¼ ¦nÅý¥¦§â¸ê·½Åý¥X¨Ó
¤]´N¬O»¡¦b°õ¦æ¦P¼Ë¨ºÀÉ ¦ý¤£»Ý­n¥¦¦b§Y®É¹Bºâ
¦]¬°²Î­p§¹«á´N·Óªí¾Þ½Ò¤F ¥u¬OÁÙ·|»Ý­n¥Î¨ì§Oªº³¡¤À
¦³³Ò±z¤F ÁÂÁÂ
§Ú²{¦b¬O"¨ç¼Æ+vba" double check ¤]¤ñ¸û©ñ¤ß
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-31 12:39

¦^´_ 62# ML089


«¢! ÁÙ¬O·sª©¦³®Æ~~
ÁÂÁ¡I

¤§«e³£¥Î©_¼¯ª¾ÃÑ+¡A²{¦bª©­±¤@§ï¤w­±¥Ø¬Ò«D¡A´XµLexcel±M¥Î®ÄªG¡I
excel-home«D±`±M·~¡A¦ý¥xÆW¤Ö¤H¥Î¡A¦³®É¦ê¦êªù¤l¡A
¥xÆW¤ñ¸û±M¤_excel½×¾Âªº¡A¦ü¥G¥u³Ñ³o¸Ì¡A¦Ó¦U¦ìªO¥D¥\¤O¤]´X¥iÀ°¦£¤j³¡¥÷°ÝÃD¡A©Ò¥H¤]¤Ö¤W¨Ó¡]¤W¨Ó¤]¬O¬Ý¬Ý¦Ó¤w¡^¡I
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-31 12:46

¦^´_ 64# lcctno


¥»¨Ó¬ï¿Ç¤l¡]¤½¦¡¡^¶ûºC¡A§ï¦¨¸È¤l¡]vba¡^¸û§Ö¨Ç¡A
²{¦b·Q¿Ç¤l¦A¬ï·f¸È¤l¡A°ÝÃD¤S¦^¨ì­ìÂI¡A
¤½¦¡½d³ò²Ä¤@®æ¯d¤½¦¡¡A¨ä¤U½Æ»s«á¦A¶K¦¨­È¡]¥H¢´¢´¼Ó½d¨ÒÀɬ°·Ç¡^¡G
Sub §ó·s¤½¦¡()
With [µ²ªG1!B4:B2562]
¡@¡@¡@[µ²ªG1!B3].Copy .Cells
¡@¡@¡@.Value = .Value
End With
End Sub

³o¼Ë¥u¦³²Ä¤@®æ¤½¦¡·|¼vÅT¹B§@¡ã¡ã

©Î¦p¤U¡G
Sub §ó·s¤½¦¡2()
With [µ²ªG1!B3:B2562]
¡@¡@.Formula = "=IF(A3="""","""",SUMPRODUCT((A3<=¸ê®Æ¦C_³Ì°ª»ù)*(A3>=¸ê®Æ¦C_³Ì§C»ù)))"
¡@¡@.Value = .Value
End With
End Sub

°õ¦æ¤¤¶·µ¥«Ý¨Ç®É¶¡¡]¦³¦p·í¾÷¡^¡A§¹¦¨«á§Y¤£·|¼vÅT¨ä¥¦¾Þ§@¡I
¡@
§@ªÌ: lcctno    ®É¶¡: 2015-8-31 14:46

¦^´_ 66# ­ã´£³¡ªL
³ø§i°ª¤â
°õ¦æ¤¤¶·µ¥«Ý¨Ç®É¶¡¡]¦³¦p·í¾÷¡^
°õ¦æ³o¶µ¥Î¤£¨ì4¬í «Ü­È±o
¦ý¬O¦³¤@­Ó°ÝÃD Àx¦sÂ÷¶}«á ¦A¶}±Ò µo²{­Y§ïÅܲέp¤é´Á¤§°Ï¶¡ ´N¤£·|§ïÅÜ¼Æ¾Ú ¥B¥´¶}®É¨Ã¨S¦³©úÅ㪺¹Bºâ°Ê°µ ³o¼Ë¨ºÀÉ®×´N¬O¥u¯à¤@¦¸©Ê¨Ï¥Î(°£«D¬O¤£·Q§ïÅܲέp°Ï¶¡ ©Î¿é¤J¨ä¥LªÑ²¼ªºdata ¦³¨S¦³¿ìªk¥[¤@­Ó¶}Ãö ÀH®É¥iÀH©Ê¦Ó¥Î
«Ü³øºp¸ûºC¦^ÂÐ ¦]¦b°µ´ú¸Õ¨º°õ¦æÀÉ (¥Ñ©ó¬Ý¤£À´ ¥u¯à¹ê°µ¬Ý²{¶H) ©Ò¥Hªá¤F¤£¤Ö®É¶¡

.Formula = "=IF(A3="""","""",SUMPRODUCT((A3<=¸ê®Æ¦C_³Ì°ª»ù)*(A3>=¸ê®Æ¦C_³Ì§C»ù)))"  
½Ð³Â·Ð§i¶D§Ú¦³³o¦æ¬O¤°»ò¥Î³~?

ÁÂÁ±zªºÀ°¦£
§@ªÌ: ­ã´£³¡ªL    ®É¶¡: 2015-8-31 16:12

¦^´_ 67# lcctno


¦ý¬O¦³¤@­Ó°ÝÃD Àx¦sÂ÷¶}«á ¦A¶}±Ò µo²{­Y§ïÅܲέp¤é´Á¤§°Ï¶¡ ´N¤£·|§ïÅÜ¼Æ¾Ú ¥B¥´¶}®É¨Ã¨S¦³©úÅ㪺¹Bºâ°Ê°µ
³o¼Ë¨ºÀÉ®×´N¬O¥u¯à¤@¦¸©Ê¨Ï¥Î(°£«D¬O¤£·Q§ïÅܲέp°Ï¶¡ ©Î¿é¤J¨ä¥LªÑ²¼ªºdata ¦³¨S¦³¿ìªk¥[¤@­Ó¶}Ãö ÀH®É¥iÀH©Ê¦Ó¥Î

·Q¨Ó·½¸ê®ÆÅÜ°Ê¡A¤½¦¡¦Û°ÊÅÜ°Ê¡A¨º´N¬O¡e±`¾n¤½¦¡¡f¡A¤]¬O¦]³o­Ó¦ÓÅý¾Þ§@ÀÉ®×ê¤â¡A
©Ò¥H¡A¸ê®ÆÅÜ°Ê¡A¥u¯à´£¨Ñ¡e¥HVBA¨ê·s¡f¤è¦¡±o¨ì³Ì·sµ²ªG¡A¡A¦]¦¹¡A¨âºØVBA¥u¬O¥Î¨ÓÅçÃÒ¨âµ{µ²ªG¬O§_¤@­P¡H
­Y¸ê®Æ¤£¦h¡A´N«O«ù¤½¦¡±`ºA¡A³sVBA³£¥i¬Ù¥h¤F¡I
­Y¸ê®Æ«Ü¦h¤S­n«O«ù¤½¦¡¡A®¤µL¤èªkÅýÀɮפ£¥d¡]Ãö±¼¦Û°Ê­«ºâ¡A»P¨Ï¥ÎVBA¦P¼Ë®ÄªG¡A¦ý·|³y¦¨¨ä¥¦¤½¦¡µLªk¹Bºâ¡A¤£¬O¦n¤èªk¡^¡A

.Formula = "=IF(A3="""","""",SUMPRODUCT((A3<=¸ê®Æ¦C_³Ì°ª»ù)*(A3>=¸ê®Æ¦C_³Ì§C»ù)))"  
³o¤£¬OªþÀɤ¤ªº¤½¦¡¶Ü¡H¥u¬O§Q¥ÎVBA¥h¸m¤J¡I¤]¥i¥Î¡e¿ý»s¡f¨ú±oFormulaR1C1ªº¤½¦¡¡I

¦³¨Ç°ÝÃD»Ý­n²Ö¿n¸gÅç¤~À´¡A¤@®ÉµLªk»¡¤Ó¸Ô²Ó¡A½ÐºCºC°Ñ°u¡ã¡ã
¡@




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)