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

[µo°Ý] ¦p¦ó¤ñ¹ï®É¶¡¡K¡K

¥»©«³Ì«á¥Ñ hugh0620 ©ó 2012-3-21 13:38 ½s¿è

¦^´_ 1# play9091


    ±NPÄæ¦ìªº¤½¦¡§ï¦¨=B2>DATE(2012,3,14)  OR =B2>DATEVALUE("2012/3/14")´N·|¬OFALSE
    =B2>2012/3/14 =>³o­Óªº·N«ä¬O B2=> (2012°£¥H3°£¥H14)
   ­n¦h¤F¸Ñ¤@¤U¤½¦¡ªº²[¸q­ò~
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

¦^´_ 5# play9091


    ¬Ý§Aµ{¦¡½Xªº¼gªk~
    D=Date-7   'À³¸Ó¬O¥Î¨t²Î¤é´Á´î7¤Ñ,¦A§Q¥ÎDªº¤é´Á¦bPÄæ¦ì¼g¤J¨ç¼Æ=D2-D
   ­Y±z­nªº¸ò§Ú²z¸Ñªº¬O¤@¼Ëªº¸Ü~
   ¤U­±ªº¤è¦¡´N¥i¥H¸Ñ¨M§Aªº°ÝÃD
   ¦ý»á¬°©_©Ç~ ¨Ï¥Îvba­nªº¦h¼Æ¬O±N¨ç¼Æ¹BºâÂন­È±a¤J~ ´î¤Ö­pºâ~
   §AÁÙ­n±N¨ç¼Æ¼g¥X¨Ó~ ¦A¥h°õ¦æ«áÄò°Ê§@~ ·Pı¦³ÂI~...²æXXXX.....
  1. Sub Week_KPI()

  2. A = Range("A65536").End(xlUp).Row
  3. D = Date - 7
  4. For I = 2 To A
  5.     Range("P" & I).Formula = "=B" & I & ">" & "Date(" & Year(D) & "," & Month(D) & "," & Day(D) & ")"
  6. Next
  7.     Range("A1:N65536").AdvancedFilter Action:=xlFilterInPlace, _
  8.         CriteriaRange:=Range("P1:Q2"), Unique:=False
  9. End Sub
½Æ»s¥N½X
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

        ÀR«ä¦Û¦b : ¦³´¼¼z¤~¯à¤À¿ëµ½´c¨¸¥¿¡F¦³Á¾µê¤~¯à«Ø¥ß¬üº¡¤H¥Í¡C
ªð¦^¦Cªí ¤W¤@¥DÃD