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

¦³Ãö¦æ¨Æ¾ä¡A¦p¦ó­pºâ·í¤ë¥X¶Ô¤Î°²¤é¤Ñ¼Æ¡H

¥»©«³Ì«á¥Ñ ML089 ©ó 2015-7-21 22:58 ½s¿è

¦^´_ 10# phoebegin

A3 =DATE(B1,1,1)
A9 =EDATE(A3,1)
B3:H8 {=IF(MONTH(A3)=MONTH(A3-WEEKDAY(A3)+{1,2,3,4,5,6,7}+{0;1;2;3;4;5}*7),A3-WEEKDAY(A3)+{1,2,3,4,5,6,7}+{0;1;2;3;4;5}*7,"")}
I4 =NETWORKDAYS(A3,EOMONTH(A3,0),OFFSET(K$2,,,COUNT(K:K)))
I7 =DAY(EOMONTH(A3,0))-I4
{¡K} ªí¥Ü¬°°}¦C¤½¦¡¡A¿é¤J¤½¦¡»Ý¨Ï¥Î¤TÁä¿é¤J(CTRL+SHIFT+ENTER¤TÁä»ô«ö¿é¤J)

EDATE¨ç¼Æ
¤u¨ã\¥[¸ü§»(ÁcÅ骩ºÙ¼W¯q¶°)\¥´¤Ä¥H¤U¤T­Ó¿ï¶µ
1. internet VBA»²§Uµ{¦¡
2.VBA¤ÀªR¤u¨ã½c
3.¤ÀªR¤u¨ã½c

¦æ¨Æ¾äML089.rar (13.54 KB)

¸É¥R
®æ¦¡¤Æ±ø¥ó B3
=(B3>0)*(0=NETWORKDAYS(B3,B3,OFFSET($K$2,,,COUNT($K:$K))))
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 11# ML089


¡@¡@ÁÂÁ±z~±z¤Ó¶K¤ß¤F¡A±q¬Q¤Ñ¤@ª½¦b«ä¦Ò¦p¦ó­×§ï¡A±z³o³õ¤Î®É«B¤S¥X²{¤F¡A
¡@¡@¡@¡@¡@¡@¤£¦ý¨qÀɮסAª¾¹D§Ú¥Ø«eÅv­­¤£¨¬ÁÙÀ°§Ú§â¤½¦¡¨q¥X¡A°ÝÃD´X¥G³£¸Ñ¨M¤F¡ã
¡@¡@¡@¡@¡@¡@²{¦b¦³ª¬ªpªº³Ñ³Ì¤U¤è³]©w®æ¦¡ªº°ÝÃD¡Aµ¥Åv­­¨¬°÷(§Ö¨¬Åo)¡A¦A§â±zªºÀɮפU¸ü¨Ó¦n¦n¬ã¨s~
               ¥t¥~·Q½Ð±Ð±z°}¦C¤½¦¡
{=IF(MONTH(A5)=MONTH(A5-WEEKDAY(A5)+{1,2,3,4,5,6,7}+{0;1;2;3;4;5}*7),A5-WEEKDAY(A5)+{1,2,3,4,5,6,7}+{0;1;2;3;4;5}*7,"")}
¡@¡@¡@¡@¡@¡@¸ÌÀY{1,2,3,4,5,6,7}¥NªíÄæ¡A{0;1;2;3;4;5}¥Nªí¦C¶Ü¡H

TOP

¦^´_ 12# phoebegin


    ¸ÌÀY{1,2,3,4,5,6,7}¥NªíÄæ¡A{0;1;2;3;4;5}¥Nªí¦C¶Ü¡H

YES

{1,2,3,4,5,6,7}¥Nªí¤ô¥­°}¦C
{0;1;2;3;4;5}¥Nªí««ª½°}¦C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 13# ML089


    ¦Ñ®v~§Ú¯uªºµo²{¦Û¤v«Ü¶w¡A¦A±Ð±Ð§Ú¦n¶Ü¡H

¡@ ¥t¥~³]©w®æ¦¡±ø¥ó­n¥þ³¡¤Ï¥Õ³]©w¡AÁÙ¬O¤@­Ó¤@­Ó³]©w©O¡H¡]§Ú°O±o¤§«eªºÀɬOª½±µ¥þ³¡¤Ï¥Õ³]©w¡^

   ¦A¥t¥~¡ã¦pªG¨ä¤¤¤@¤Ñ¤»©Î¤é¥²¶·¸É¯Z¡]¤W¯Z¡^¡A¨º»ò­n¦A¦p¦ó³]©w©O¡H

TOP

¦^´_ 14# phoebegin


    ³]©w®æ¦¡±ø¥ó­n¥þ³¡¤Ï¥Õ³]©w¡AÁÙ¬O¤@­Ó¤@­Ó³]©w©O¡H¡]§Ú°O±o¤§«eªºÀɬOª½±µ¥þ³¡¤Ï¥Õ³]©w¡^

¥þ³¡¤Ï¥Õ³]©w

§Ú¥Ø«e¨Ï¥Î2007ª©¡A¦³®É¥þ³¡¤Ï¥Õ³]©w¦³·|¦³°ÝÃD¡A§Ú³£¬O¥ý²M°£¿ï¾Ü½d³ò¤ºªº­ì¥ý³]©w¦A­«³]
§Úı±o2003§Ú¤ñ¸û²ßºD¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 14# phoebegin

¦pªG¨ä¤¤¤@¤Ñ¤»©Î¤é¥²¶·¸É¯Z¡]¤W¯Z¡^¡A¨º»ò­n¦A¦p¦ó³]©w©O¡H

³o¦³¨Ç³Â·Ð¡A¨Ï¥ÎEXCELªº¤º©w¤½¦¡¥i¯à§@¤£¨ì¡A»Ý­n¦Û¦æ©w¸q ¸É¯Z¤é´Á ¦A¥[¦^¨Ó¡C
±ø¥ó³]©w¤]¬O»Ý­n¦A°Ñ¦Ò  ¸É¯Z¤é´Á ¡C

´X¦~«e¦³§@¹LÃþ¦ü¡A±ß¤W¦^®a¦A§ä¬Ý¬Ý¡C
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 14# phoebegin

¥[¤@Äæ ¸É¯Z¤é´Á

    ¦æ¨Æ¾äML089.rar (13.75 KB)
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 15# ML089


    ¦Ñ®v¡G
¡@¡@¡@¡@§Ú¥þ³¡¤Ï¥Õ³s¨ä¥L®æ¦¡³£Åܦ¨¡A="(B3>0)*(0=NETWORKDAYS(B3,B3,OFFSET($X$3,,,COUNT($X:$X))))"[attach]21584[/attach]

¡@¡@¡@¡@¦Ó¥B¦b¨ä¥L°²¤éÀx¦s®æ­×§ï¡AÁöµM¤w§ï¦¨¥\¡A¦ýÁÙ¬O¤£·|¶ñº¡ÃC¦â ¡I

¡@¡@¡@¡@ÁÙ¦³·|Åܦ¨Âù¤Þ¸¹¡A²{¦b¤~µo²{­ì¨Ó§Ú©MEXCEL³o»ò¤£¼ô¡I:'(

¥¼©R¦W1.JPG (114.01 KB)

¥¼©R¦W1.JPG

TOP

¦^´_ 18# phoebegin

½Æ»s¤½¦¡®É¡A©Î¶ñ¤J¤½¦¡®É«e­±¦³ªÅ¥Õ
¶·¤â¤u±NÂù¤Þ¸¹¥h°£
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 19# ML089


    ·í§Ú¤â°Ê§R°£Âù¤Þ¸¹®É ¡A¥L»¡§Ú°Ñ·Ó¨ì¨ä¥L¤u§@ªí
   
    ·í§Ú³s¦P=¸¹©M"¸¹¤@°_§R°£®É¡A¥¦Âù¤Þ¸¹¤S¶]¥X¨Ó¨£§Ú¤F¡ã

    Book1.zip (10.91 KB)

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD