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

[µo°Ý] ½Ð°Ý¤@­Ó¥¨¶°³]©wªº°ÝÃD

[µo°Ý] ½Ð°Ý¤@­Ó¥¨¶°³]©wªº°ÝÃD

§Ú·Q­n¤@¶}±ÒexcelÀÉ´N¯à¦Û°Ê°õ¦æªþ¥ó»Ý¨D
½Ð°Ý­n¦p¦ó³]­p¥¨¶°µ{¦¡½X
ÁÂÁÂ

¤p»x~~©êºp
§Ú¦³¤W¶Ç~~¥u¬O¦n¹³¥¼¶Ç°e¥X¥h~~¤U¦¸·|¥ý½]®Ö¤@¤U¦bÂ÷¶}
¤]³Â·ÐHsieh ¤j¤j¨ó§U¸Ñµª~~·PÁÂ

TOP

[ª©¥DºÞ²z¯d¨¥]
  • ¤p»x(2010-5-31 12:29): ªþ¥ó¦b­þ??°£¤F¹Ï¤ùÀÉ¥iª½±µ¤W¶Ç¥~,¨ä¾lªºÀÉ®×Ãþ«¬³£­nÀ£ÁY«á¤~¦¨¤W¶Ç!!
  • ¤p»x(2010-5-31 12:30): ½Ð¸Ô¾\½×¾Âª©³W¤§ÀɮפW¤U¶Ç­ì«h,Àɮתþ¥ó½Ð¾¨¶q§R°£¤£¥²­n¸ê®Æ«áÀ£ÁY«á¤W¶Ç¡C

«Ü©êºp¤S­n¦A¥´ÂZ±z¤F~~¦]¬°³Ìªñ­n°µÀɮ׸ê®ÆºÞ²z~~©Ò¥H¥i¯à·|¦³¤@¨Ç°ÝÃD³°³°ÄòÄò½Ð±Ð±z¡AÁٽбz¤£§[«ü¾É¡I
°ÝÃD¦pªþ¥ó
¥¨¶°»Ý¨D.zip (47.41 KB)
1

µû¤À¤H¼Æ

TOP

If Date > A.Offset(, 19) Then A.Offset(, 18).Resize(, 2) = ""

½Ð°Ý³o±øµ{¦¡½Xªº·N«ä¬°¦ó©O
lone_tiger0303 µoªí©ó 2010-5-26 14:35



    ¦pªG·í¤Ñ¤é´Á¤ñA¦V¥k19Ä檺­È¤j´N±NA¦V¥k18,19Äæ²MªÅ
¦¹¦æ¬°¸Ñ¨M­n°O¦í3­Ó¤ë«á¤é´Á,¤~¦bA¦V¥k19Äæ°O¦í¤é´Á
·í¨ì´Á®É´N²MªÅªº·N«ä
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

If Date > A.Offset(, 19) Then A.Offset(, 18).Resize(, 2) = ""

½Ð°Ý³o±øµ{¦¡½Xªº·N«ä¬°¦ó©O

TOP

·PÁ±zªº¨ó§U~~
«áÄò¦³°ÝÃD¦A¦V±z½Ð±Ð

TOP

¦^´_ 7# lone_tiger0303
  1. Private Sub CommandButton1_Click()
  2. Dim Ay(3, 2), My As Range, A As Range
  3. Ay(0, 0) = 0: Ay(0, 1) = "©¾¸Û«È": Ay(1, 0) = 9.1: Ay(1, 1) = "¤[¥¼¦^«È": Ay(2, 0) = 12.1: Ay(2, 1) = "¬y¥¢«È"
  4. With Sheet1
  5. For Each A In .Range(.[A2], .[A65536].End(xlUp))
  6.    Set My = .Columns("Y").Find(A, lookat:=xlWhole)
  7.    If Not My Is Nothing Then A.Offset(, 4) = My.Offset(, 1)
  8.    If A.Offset(, 18) < A.Offset(, 4) Then A.Offset(, 18) = ""
  9.    If A.Offset(, 18) > A.Offset(, 4) And A.Offset(, 19) = "" Then A.Offset(, 19) = DateAdd("m", 3, A.Offset(, 18))
  10.    If Date > A.Offset(, 19) Then A.Offset(, 18).Resize(, 2) = ""
  11. Next
  12.    Set rng = .Range(.[E2], .[E65536].End(xlUp))
  13.        For Each A In rng
  14.          If IsDate(A) Then
  15.          m = Application.Max(0, Round((Date - A) / 30, 2))
  16.          k = Application.VLookup(m, Ay, 2)
  17.          A.Offset(, 11).Resize(, 3) = Array(m, k, A.Offset(, -3) & "-" & k)
  18.          End If
  19.        Next
  20. End With
  21. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

Àɮ׻ݨD¡G
1.A~OÄ檺¸ê®Æ¡ASÄæ¸ê®Æ»PY~ZÄæ¦ì¸ê®Æ·|¨C¤ë¤â°Ê§ó·s
2.EÄæ¦ìªº¤é´Á·|¦]AÄæ¦ì»PYÄæ¦ì¤ñ¹ï«á¡A±N¬Û²ÅªºZÄæ¸ê®Æ±a¨ìEÄæ¦ì¡AÁ|¨Ò¡G
A           E                                             Y     Z   
¶µ¥Ø      ¤é´Á                                                      ¶µ¥Ø   ¤é´Á
AB     2009/5/8                                  AB    2010/1/1

¦]AÄæAB¨µYÄæ§ä¨ì¬Û²Å¶µ¥ØAB¡A©ó¬OEÄæ¤é´Á·|¥Ñ2009/5/8¡÷2010/1/1

TOP

A,YµL¹ïÀ³®É¦p¦ó¨ú­È?
S¤é´Á«ç¼Ë¨ú±o?
½Ð»¡©úÀÉ®×±ý¾Þ§@¬yµ{¬°¦ó
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ lone_tiger0303 ©ó 2010-5-25 15:06 ½s¿è

¤j¤H­ÞªPªü~~~
¤p§Ì«ö¤W¶Çªþ¥ó®É¦n¹³¥u±µ¨ü¹ÏÀÉ­C
ÁÙ¬O§Ú­þ¸Ì¾Þ§@¿ù»~

¥¨¶°»Ý¨D.zip (13.43 KB)

TOP

        ÀR«ä¦Û¦b : ¨ü¤HÂI¤ô¤§®¦¡A¶··í´é¬u¥H³ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD