跳到主要內容

如何從Excel中的開始日期和持續時間計算結束日期?

現在,如果有開始日期和持續時間的列表,則要基於開始日期和持續時間來計算結束日期。 您如何在Excel中解決這項工作?

使用公式從開始日期和持續時間計算結束日期

通過驚人的功能從開始日期和持續時間計算結束日期


使用公式從開始日期和持續時間計算結束日期


從開始日期和年月日持續時間計算結束日期

以下公式可以幫助您根據給定的開始日期和持續時間來計算結束日期,請按照以下步驟操作:

根據開始日期和持續時間(週)計算結束日期:

1。 要根據開始日期和周數計算結束日期,請在空白單元格中輸入以下公式:

=IF(A2,A2+(B2*7),"")

備註:在此公式中: A2 是開始日期, B2 是持續時間。

2。 然後,將填充手柄向下拖動到要應用此公式的單元格上,並顯示數字列表,如以下屏幕截圖所示:

3。 然後,您應該將數字格式化為日期格式,單擊 首頁 標籤,選擇 短期約會 來自 下拉列表,並且數字已被格式化為日期格式,請參見屏幕截圖:


根據開始日期和持續時間(月)計算結束日期:

如果要從開始日期和月份數計算結束日期,則以下公式可能會對您有所幫助:

1。 在要獲取結果的空白單元格中輸入以下公式:

=DATE(YEAR(A2),MONTH(A2)+B2,DAY(A2))

備註:在此公式中: A2 是開始日期, B2 是持續時間。

2。 然後,將填充手柄向下拖動到要填充此公式的單元格上,並且結束日期已被立即計算出來,請參見屏幕截圖:


根據開始日期和持續時間(年)計算結束日期:

要根據給定的開始日期和年數計算結束日期,請使用以下公式:

=DATE(YEAR(A2)+B2,MONTH(A2),DAY(A2))

備註:在此公式中: A2 是開始日期, B2 是持續時間。

然後,將填充手柄向下拖動到要應用此公式的單元格上,並且所有結束日期均已計算。 看截圖:


根據開始日期和持續時間(年,月和日)計算結束日期:

要根據給定的開始日期以及年,月和日的數量獲取結束日期,請使用以下公式:

=DATE(YEAR(A2)+B2,MONTH(A2)+C2,DAY(A2)+D2)

備註:在此公式中: A2 是開始日期, B2 是一年的持續時間, C2 是一個月的持續時間,並且 D2 是您要添加的一天的持續時間。

然後向下拖動填充手柄,將公式填充到所需的其他單元格中,並且所有結束日期都已計算完畢,請參見屏幕截圖:


從開始時間以及小時,分鐘,秒的持續時間計算結束時間

有時,您可能需要從開始時間以及小時,分鐘和秒的持續時間返回結束時間,Excel中的TIME功能可以幫您一個忙。

請輸入以下公式或將其複製到空白單元格中:

=A2+TIME(B2,C2,D2)

備註:在此公式中: A2 是開始時間, B2 是一個小時的持續時間, C2 是分鐘的持續時間,並且 D2 是您要添加的秒數。


通過驚人的功能從開始日期和持續時間計算結束日期

也許您對上述公式感到厭倦,在這裡,我將討論一個有用的工具-Excel的Kutools,其 日期和時間助手 功能,您可以盡快輕鬆地處理此工作。

注意:要應用此 日期和時間助手,首先,您應該下載 Excel的Kutools,然後快速輕鬆地應用該功能。

安裝後 Excel的Kutools,請這樣做:

1。 單擊要在其中輸出計算結果的單元格,然後單擊 庫工具 > 公式助手 > 日期和時間助手,請參見屏幕截圖:

2。 在 日期和時間助手 對話框,請執行以下操作:

  • Check the 加入 選項從 類別 部分;
  • 點擊 按鈕,從中選擇包含要使用的開始日期的單元格 輸入日期或選擇日期格式單元格 文本框;
  • 然後在您要添加的持續時間中鍵入或選擇單元格 輸入數字或選擇包含要添加值的單元格 部分。

3。 完成設置後,單擊 OK 按鈕,您將獲得第一個計算結果,然後,只需將填充手柄向下拖動到要應用此公式的單元格,您將獲得以下結果:

點擊下載Kutools for Excel並立即免費試用!


更多有關日期和時間的文章:

  • 從僱用日期計算服務時間
  • 現在,如果您擁有一系列數據,包括員工姓名及其在工作表中加入公司的日期,則可能需要計算他們的服務年限,這意味著要獲得員工在公司工作的年數和月數。 本文,我將為您介紹解決此工作的快速方法。

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I want to calculate the total hours, minutes and seconds with number of days. How do i do that in excel?
This comment was minimized by the moderator on the site
I need to have one end date for any start date within the past year - so multiple submissions throughout the year but the expiry should be based on one year from the first entry date. If request was made on Nov 11,2021 - expiry will be Nov 10, 2022. If another submission is made on Dec 13,2021 - expiry date should still be Nov 11, 2021. Can you help? 
This comment was minimized by the moderator on the site
<p>I have the start date and time / end date and time and neet to calculate the duration in hours and min.</p>
This comment was minimized by the moderator on the site
I have start time and end for group of members on daywise, I need hourly report like at 12 PM how many accounts are accessing application.
This comment was minimized by the moderator on the site
Hi,I want to calculate the end date using start date and duration in minutes.
This comment was minimized by the moderator on the site
Hi, can someone please give me a formula to calculate number of days for each month from a start to end date.
for example if I had a start date of 28/05/21 and end date 10/06/21, the result would be 4 May days and 10 June days.
Thanks
This comment was minimized by the moderator on the site
hi,

How you could calculate how may employees are working on a specific date. There are separate columns on the excel table for employees name, starting date and end date.
Many thanks in advance

This comment was minimized by the moderator on the site
Hi,
How to find the date of birth by retirement date and retirement age?
For Example: Retirement date is 01-Mar-2014 and Retirement age is 58 years.
Now how to find the date of birth.
Thanks in advance.
This comment was minimized by the moderator on the site
Hello, Ravi,For calculating the date of birth by retirement date and retirement age, please apply the below formula:=DATE(YEAR(A1)-58,MONTH(A1),DAY(A1))
Note: A1 is the retirement date, and 58 is your retirement age.Please try it, thank you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations