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

[µo°Ý] ½Ð«ü¾ÉVBA»yªk¡AÁÂÁÂ

¦A½Ð¯q¡A¥H¤Uªº°ÝÃD
Äæ¦ì¥Ò¤A¤þ¤B¥³µ¥µ¥¬Æ¦ÜÀH®ÉÄæ¦ì¥i¦A¼W¥[®É
­pºâ²Å¦X¤é´Á(EX:2014/8)ªº"(·í¤ë§Ûªí¶q-«e¤@­Ó¤ëªº§Ûªí¶q)/¤é¼Æ"
§â­pºâ¥Ò¤A¤þ¤B........ªº"(·í¤ë§Ûªí¶q-«e¤@­Ó¤ëªº§Ûªí¶q)/¤é¼Æ"­pºâµ²ªG¼g¨ì¤U¤@­Ó¤u§@ªí¤º
ªº¸Ñ¨M¤èªk
¤p§Ì¥¿¦b·Q¦p¦ó°µ¡A±ßÂI·|§âªì·QªkPO¥X
ÁÂÁÂ

TOP

ÁÂÁ¡A¯uªº¬O¦³°Ý¦³µª¦³¾Ç¨ì

TOP

¦^´_ 8# idnoidno

Åý¥L¤ñ¹ï¦¨¥\«áµ²§ôµ{§ÇSub
  1. Sub finddate()
  2. myrows = Worksheets("¤u§@ªí1").Cells(Rows.Count, 1).End(xlUp).Row
  3. ¤é´Á = [i2] & "/" & [j2]
  4. For i = 2 To myrows
  5.     AÄæÀx¦s®æ = Format(Cells(i, "A"), "yyyy/m")
  6.     If ¤é´Á = Format(Cells(i, "A"), "yyyy/m") Then
  7.         Cells(2, 12) = Cells(i, 2)
  8.         End '¥[³o­ÓEnd¤ñ¹ï¦¨¥\«á´Nµ²§ôµ{§Ç
  9.     End If
  10. Next
  11. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-4-16 13:56 ½s¿è

¦^´_ 8# idnoidno


    ­Y¤£­n0X¤ë¡A¤]¥i¥H"yyyy/m"
´N·|¬O3¤ë¤F¤£·|¬O03¤ë¡A10¤ë¤]·|¬O10¤ë

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-4-16 13:52 ½s¿è

¦^´_ 7# idnoidno

¤U¹Ï¬O§A¤W¶ÇªºÀɮרS­×§ï¹L¡A
¥i¥H¤ñ¹ï¦¨¥\
¸Ì­±§Ú¦h¤@­ÓÅܼÆ"AÄæÀx¦s®æ"¬OÆ[¹îÅܼƥΪº,¥i§R°£
   

TOP

Format(Cells(i, "A"), "yyyy/mm")
¹Bºâ¥X¨Ó¬O2014/03
¤é´Á¬O2014/3
©Ò¥H¤ñ¹ï¤£¥X¨Ó

TOP

§Úªº·N«ä¬O
¤é´Á = Format(Cells(i, "A"), "yyyy/mm")
´ú¸Õµ²ªG¦n¹³¤ñ¹ï¤£¥X¨Ó

TOP

½Ð°Ý¼Ó¤W¨â¦ì¤j¤j
§ÚTRYªºµ²ªG
¤é´Á¦n¹³¤ñ¹ï¤£¥X¨Ó­C
¬O¤£¬O§Ú­þÃ䦳ª¬ªp¨S³B²z©O

TOP

¦¬¨ì¡A®ø¤Æ¤¤¡A¤£¹L¯uªº¨S·Q¨ì³o¼Ë¥i¥H³B²z³á¡A¯uªº¤Q¤ÀÁÂÁÂ

TOP

¦^´_ 1# idnoidno
­Y§A©Ò¿×ªº¤é¥­§¡«üªº¬O¨C­Ó¤Hªº§Ûªí¼Æ¦r
«h¥i¨Ï¥Î¦¹µ{¦¡½X,¤Þ¥Î¼Ó¤W¤j¤jªºµ{¦¡½X°µ¼W¥[
  1. Sub finddate()
  2. myrows = Worksheets("¤u§@ªí1").Cells(Rows.Count, 1).End(xlUp).Row
  3. ¤é´Á = [i2] & "/" & [j2]
  4. For i = 2 To myrows
  5.     If ¤é´Á = Format(Cells(i, 1), "yyyy/mm") Then
  6.         temp = 0
  7.         For j = 2 To 7
  8.             temp = temp + Cells(i, j)
  9.         Next
  10.         [k2] = temp / 6
  11.     End If
  12. Next
  13. End Sub
½Æ»s¥N½X
PKKO

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD