- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
»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 ¨ç¼Æ©ó»Ýnpºâ¦~ÄÖªº¤½¦¡®É«Ü¦³¥Î¡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) |
|