跳到主要內容

Excel公式:計算兩個日期之間的天數忽略年份

doc將日期轉換為julia 1

通常,我們通過Excel中的較晚日期-較早日期來計算兩個日期之間的天數。 但是,如果要計算忽略日期的兩個日期之間的天數,可以使用什麼公式?

如果您想學習本教程,請下載示例電子表格。
doc將日期轉換為julia 1

通用公式:

DATEDIF(start_date,end_date,”yd”)

語法和參數

Start_date, end_date: the two dates that you want to count the number of days between. The start_date must be smaller than the end_date, otherwise, the formula returns #NUM!

回報值

此公式返回一個數值。

這個公式如何運作

要計算單元格B3和C3中的日期之間的天數(忽略年份),請使用以下公式:

=DATEDIF(B3,C3,"yd")

媒體推薦 Enter 鍵,然後將自動填充手柄向下拖動到需要此公式的單元格。
doc將日期轉換為julia 1 doc將日期轉換為julia 1

解釋

達蒂夫 函數:返回兩個日期之間的年,月或日。


相對公式

相關功能


最佳辦公效率工具


Office Tab - 在 Microsoft Office(包括 Excel)中啟用分頁式閱讀和編輯

  • 一秒鐘即可在數十個打開的文檔之間切換!
  • 每天為您減少數百次鼠標單擊,告別鼠標手。
  • 查看和編輯多個文檔時,將您的工作效率提高 50%。
  • 為 Office(包括 Excel)帶來高效的選項卡,就像 Chrome、Edge 和 Firefox 一樣。
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations