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

[µo°Ý] ­pºâ¥XÁÙ¦³´X­Ó¤ë¨ì´Á

¦^´_ 10# Hsieh


¯u¬O¤Ó·PÁÂHsieh ¤j¤j¤F
À°¤p§Ì¸Ñ¨M¤F¦n¦h·Ð´o
¤p§Ì´ú¸Õ«á ¥i¥H¥¿±`¨Ï¥Î ¤p§Ì«D±`°ª¿³©O
¤]Åý¤p§Ì¦h¾Ç¤F¦n¦hEXCELªºÀ³¥Î¤è¦¡
¤p§ÌÀ°§A±À±À±À^^

TOP

¦^´_ 10# Hsieh


·PÁÂ Hsieh ¤j¤j
Åý§ÚªºÀÉ®×´îªÎ¤F^^

TOP

¦^´_ 5# cappuccino22

µ¹­Ó¨C¦~³£¥i¥H¥Îªº
    =DATEDIF(TODAY(),DATE(YEAR(TODAY()),12,31),"D")
¤p§Ì¬Oexcelµ{¦¡ªì¾ÇªÌ¡A½Ð¦h¦h«ü±Ð

TOP

¦^´_ 10# Hsieh

©_©Ç¤§«e¦³¦^´_«ç»ò¨Sµo¥X¨Ó
¦Aµo¤@¦¸
·PÁÂHsieh ¤j¤j
Åý§ÚªºÀɮײ¤Æ¤F
­ì¨Ó¤ÀªR¤u¨ã½c¤Ä¿ï«áÁÙ¦³¦n¥ÎªºªF¦è §Ú³£¤£ª¾¹D©O
Hsieh ¤j¤j¯uªºÅý§Ú¾Ç¤F¦n¦hªF¦è
µ¹§A©ç©ç¤â^^

TOP

»yªk
DATEDIF(start_date,end_date,unit)

Start_date    ¥Nªí¬Y´Á¶¡¤ºªº²Ä¤@­Ó¤é´Á©Î°_©l¤é´Á¡C¤é´Á¦³¦hºØ¿é¤J¤èªk¡G±a¤Þ¸¹ªº¤å¦r¦r¦ê (¨Ò¦p "2001/1/30")¡B§Ç¸¹ (¨Ò¦p¡A¦pªG¨Ï¥Î 1900 ¤é´Á¨t²Î¡A«h 36921 ¥Nªí 2001 ¦~ 1 ¤ë 30 ¤é)¡A©Î¬O¨ä¥L¤½¦¡©Î¨ç¼Æªºµ²ªG (¨Ò¦p¡ADATEVALUE("2001/1/30"))¡C

End_date    ¥Nªí¬Y´Á¶¡¤ºªº³Ì«á¤é´Á©Îµ²§ô¤é´Á¡C

Unit    ±z§Æ±æ¶Ç¦^ªº¸ê°TÃþ«¬¡G

Unit ·|¶Ç¦^
"Y" ´Á¶¡¤ºªº§¹¾ã¦~¼Æ¡C
"M" ´Á¶¡¤ºªº§¹¾ã¤ë¼Æ¡C
"D" ´Á¶¡¤ºªº¤Ñ¼Æ¡C
"MD" start_date »P end_date ªº¤Ñ¼Æ®t¡C©¿²¤¤é´Á¤¤ªº¤ë©M¦~¡C
"YM" start_date »P end_date ªº¤ë¼Æ®t¡C©¿²¤¤é´Á¤¤ªº¤é©M¦~¡C
"YD" start_date »P end_date ªº¤Ñ¼Æ®t¡C©¿²¤¤é´Á¤¤ªº¦~¡C
³Æµù
¥H§Ç¸¹Àx¦s¤é´Á¡A³o¼Ë¥¦­Ì¥i¥H¥Î©ó­pºâ¡C¨Ì¹w³]¡A1899 ¦~ 12 ¤ë 31 ¤éªº§Ç¸¹¬° 1¡A¦Ó 2008 ¦~ 1 ¤ë 1 ¤éªº§Ç¸¹«h¬° 39448¡A¦]¬°¥¦¬O 1900 ¦~ 1 ¤ë 1 ¤é¤§«áªº²Ä 39,448 ¤Ñ¡C
DATEDIF ¨ç¼Æ©ó»Ý­n­pºâ¦~ÄÖªº¤½¦¡®É«Ü¦³¥Î¡C
½d¨Ò
Start_date End_date ¤½¦¡ »¡©ú (µ²ªG)
1/1/2001 1/1/2003 =DATEDIF(Start_date,End_date,"Y") ¶g´Á¤¤ªº¨â­Ó¾ã¦~ (2)
6/1/2001 8/15/2002 =DATEDIF(Start_date,End_date,"D") 2001 ¦~ 6 ¤ë 1 ¤é»P 2002 ¦~ 8 ¤ë 15 ¤é¤§¶¡¦@¦³ 440 ¤Ñ (440)
6/1/2001 8/15/2002 =DATEDIF(Start_date,End_date,"YD") ©¿²¤¤é´Á¤¤ªº¦~¡A6 ¤ë 1 ¤é©M 8 ¤ë 15 ¤é¤§¶¡¦@¦³ 75 ¤Ñ (75)
6/1/2001 8/15/2002 =DATEDIF(Start_date,End_date,"MD") ©¿²¤¤é´Á¤¤ªº¤ë©M¦~¡Astart_date ¤¤ªº¤Ñ¼Æ (1) »P end_date ¤¤ªº¤Ñ¼Æ (15) ¤§¶¡ªº®t (14)
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

·s¤B¾Ç·|¦¹Â²³æªº§@ªk¡I
§Ú¥H«e¥uÀ´¥Î¥H¦Û¤v´¢ºNªºªº¤èªk¡G¡I
=DATE(YEAR(A3),MONTH(A3)+3,DAY(A3))

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD