跳到主要内容

如何从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 是您要添加的秒数。


通过惊人的功能从开始日期和持续时间计算结束日期

也许您对上述公式感到厌倦,在这里,我将讨论一个有用的工具-Kutools for Excel,其 日期和时间助手 功能,您可以尽快轻松地处理此工作。

请注意:申请这个 日期和时间助手,首先,您应该下载 Kutools for Excel,然后快速轻松地应用该功能。

安装后 Kutools for Excel,请这样做:

1。 单击要在其中输出计算结果的单元格,然后单击 库工具 > 公式助手 > 日期和时间助手,请参见屏幕截图:

2。 在 日期和时间助手 对话框,请执行以下操作:

  • 访问 地址 选项从 Type 部分;
  • 点击 按钮以从中选择包含要使用的开始日期的单元格 输入日期或选择日期格式单元格 文本框;
  • 然后在您要添加的持续时间中键入或选择单元格 输入数字或选择包含要添加值的单元格 部分。

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 Tab 为 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