跳到主要内容

在 Excel 中快速将小时/分钟/秒添加到日期时间

作者:孙 最后修改时间:2023-12-26

在 Excel 中管理日期和时间通常是一项细致的任务,尤其是当您需要跨多个单元格修改时间时。 无论您是调整项目时间表、安排事件还是记录数据,向日期时间添加特定的时间增量都是常见的需要。 在本文中,我们将探讨如何向 Excel 中的混合日期时间单元格快速添加小时、分钟和秒。

excel 文档字符数 1



视频:向日期时间添加时间

 


使用公式将小时/分钟/秒添加到日期时间

 

本部分概述了四个不同的公式,可帮助您有效地将特定的小时数、分钟数和秒数添加到 Excel 中的日期时间值(单独或作为组合时间值)。 请按照以下步骤有效应用每个公式:

步骤一:选择空白单元格输出结果
步骤 2:使用公式添加小时、分钟和秒

在选定的空白单元格中,请根据需要使用以下公式之一。

  • 将小时数添加到日期时间

    要在 Excel 中向日期时间添加特定的小时数,可以使用简单的公式。

    一般公式为:

    日期时间 + 小时数/24

    应用此方法的方法如下:

    示例:要将单元格 A3 中的日期时间添加 2 小时,请使用以下公式:

    =A2 + 3/24

    此公式之所以有效,是因为一天有 24 小时,因此将小时数除以 24 即可将其转换为一天的等效分数。 将此分数添加到原始日期时间会导致日期时间增加指定的小时数。

  • 向日期时间添加分钟

    要在 Excel 中向日期时间添加特定的分钟数,可以使用简单的公式。

    一般公式为:

    日期时间 + num_分钟/1440

    应用此方法的方法如下:

    示例:要将 30 分钟添加到单元格 A2 中的日期时间,请使用以下公式:

    =A2 + 30/1440

    此公式之所以有效,是因为一天有 1440 分钟,因此将分钟数除以 1440 即可将其转换为一天的等效分数。 将此分数添加到原始日期时间会导致日期时间增加指定的分钟数。

  • 向日期时间添加秒数

    要在 Excel 中向日期时间添加特定的秒数,可以使用简单的公式。

    一般公式为:

    日期时间 + 秒数/86400

    应用此方法的方法如下:

    示例:要将单元格 A10 中的日期时间添加 2 秒,请使用以下公式:

    =A2 + 10/86400

    此公式之所以有效,是因为一天有 86400 分钟,因此将秒数除以 86400 即可将其转换为一天的等效分数。 将此分数添加到原始日期时间会导致日期时间增加指定的秒数。

  • 将小时、分钟和秒添加到日期时间

    要将小时、分钟和秒的混合值添加到 Excel 中的日期时间,可以使用 TIME 函数。

    一般公式为:

    日期时间 + 时间(小时数、分钟数、秒数)

    示例:要将 1 小时 10 分钟 20 秒添加到单元格 A2 中的日期时间,请使用以下公式:

    =A2 + TIME(1,10,20)

然后按 Enter 键,然后将自动填充手柄拖动到单元格上以应用公式(如果需要)。

Tips::要从日期时间中减去时间,只需将加号 (+) 更改为减号 (-)。
(可选)步骤 3:设置单元格格式

如果计算结果以数字格式而不是日期时间显示,您可以通过几个快速步骤轻松更改此设置:

  1. 选择结果:单击并拖动以突出显示包含计算结果的单元格。
  2. 打开单元格格式对话框: 要么按 Ctrl + 1 在键盘上,或右键单击选定的单元格并选择 单元格格式 从上下文菜单。
  3. 设置正确的格式:
    1. 联系电话 标签,选择 定制版 来自 产品类别 名单,
    2. Type mm / dd / yyyy hh:mm:ss ,在 Type 文本框,(或根据需要输入其他格式,)
    3. 点击 OK.

通过应用这些步骤,您将把数字输出转换回可读的日期时间格式,确保您的数据准确且清晰呈现。


让日期时间计算飞起来

Kutools for Excel's 日期时间助手 是一个非常高效的工具,旨在简化复杂的日期和时间计算。 尝试一下,看看它如何改变您的数据管理体验!


    使用方便的工具为日期时间增加小时/分钟/秒

     

    Excel 的 Kutools's 日期时间助手 是用于管理电子表格中的日期和时间的游戏规则改变者。 该工具简化了复杂的任务,例如添加或减去时间、计算年龄和管理间隔,所有这些都不需要复杂的公式。 其直观的界面与 Excel 顺利集成,非常适合初学者和高级用户。

    安装 Kutools for Excel:下载并安装 Kutools for Excel 以获得各种方便的 Excel 功能。

    选择将输出结果的空白单元格,然后单击 库工具 > 公式助手 > 日期和时间助手,在弹出的对话框中,请:

    1. 访问 地址 选项。
    2. 选择包含您要修改的日期时间的单元格。
    3. 输入要添加的小时、分钟和秒。
    4. 在结果部分预览结果并单击 OK.

    然后根据需要使用自动填充手柄将此调整应用到其他单元格。

    这两种方法,无论是传统的公式方法还是简化的 Kutools 功能,都可以显着减少在 Excel 中修改日期时间数据所花费的时间。 选择正确的方法取决于您的具体需求和数据的复杂性。 有关更多 Excel 见解和技巧, 继续探索我们的文章,旨在提高您的工作效率和数据管理技能。


    最佳办公效率工具

    Kutools for Excel-帮助您从人群中脱颖而出

    🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
    热门特色: 查找、突出显示或识别重复项  |  删除空白行  |  合并列或单元格而不丢失数据  |  不使用公式进行四舍五入 ...
    超级VLookup: 多重标准  |  多重价值  |  跨多页  |  模糊查询...
    副词。 下拉列表: 简易下拉列表  |  依赖下拉列表  |  多选下拉列表...
    列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  将列与 选择相同和不同的单元格 ...
    特色功能: 网格焦点  |  设计图  |  大方程式酒吧  |  工作簿和工作表管理器 | 资源库 (自动文本)  |  日期选择器  |  合并工作表  |  加密/解密单元格  |  按列表发送电子邮件  |  超级筛选  |  特殊过滤器 (过滤粗体/斜体/删除线...)...
    前 15 个工具集12 文本 工具 (添加文本, 删除字符 ...)  |  50+ 图表 类型 (甘特图 ...)  |  40+ 实用 公式 (根据生日计算年龄 ...)  |  19 插入 工具 (插入二维码, 从路径插入图片 ...)  |  12 转化 工具 (小写金额转大写, 货币兑换 ...)  |  7 合并与拆分 工具 (高级组合行, 拆分 Excel 单元格 ...)  |  ... 和更多

    Kutools for Excel 拥有超过 300 个功能, 确保只需点击一下即可获得您所需要的...

    课程描述


    Office 选项卡 - 在 Microsoft Office(包括 Excel)中启用选项卡式阅读和编辑

    • 一秒钟即可在数十个打开的文档之间切换!
    • 每天为您减少数百次鼠标单击,告别鼠标手。
    • 查看和编辑多个文档时,可将您的工作效率提高50%。
    • 为 Office(包括 Excel)带来高效的选项卡,就像 Chrome、Edge 和 Firefox 一样。
    Comments (16)
    No ratings yet. Be the first to rate!
    This comment was minimized by the moderator on the site
    Hi,
    I would like to have your help, please.
    I have a register of miliseconds in a raw base data, but I need to have these miliseconds in a format of mm/ss, how can I change it? Is there any kind of formula?
    Thank you in advance.
    This comment was minimized by the moderator on the site
    Pls help me how to02/03/202102:10Add time 24 hrsShow result03/03/202102:10
    This comment was minimized by the moderator on the site
    Hi, Sn mishra, to add the fixed time 24 hours to a date, why you not directly add one day to the date? In this case, you can use the formula date+1 to get the result, such as ="2/3/2021 2:10"+1
    This comment was minimized by the moderator on the site
    How about subtracting 15 hours from a time? I have a worksheet with releases from river headgates and need to put in a formula to tell client what time to release water into river (15 hours prior to 8 AM).
    This comment was minimized by the moderator on the site
    Hi, Jerry, to subtract 15 hours from a time, just use the formula time-15/24 to get the result.
    This comment was minimized by the moderator on the site
    I know this is an old thread, but this doesn't work for me using KuTools. Does the original data have to be in a certain format? I've tried both general and custom (mm-dd-yyyy hh:mm:ss). Any help would be greatly appreciated!
    This comment was minimized by the moderator on the site
    This is really helpful. Thanks a lot! :-)
    This comment was minimized by the moderator on the site
    Thank you very much for this.
    This comment was minimized by the moderator on the site
    it works well, thanks...
    This comment was minimized by the moderator on the site
    looks nice, but not working, what version of excel are you presenting?
    This comment was minimized by the moderator on the site
    NICE IT WORKS THANK U
    This comment was minimized by the moderator on the site
    this add in does not even work. I tried the exact example above and I just get errors.
    This comment was minimized by the moderator on the site
    Could you give me a specific example?
    This comment was minimized by the moderator on the site
    Thank u for ur remind.! I have corrected it. Thanks again.
    There are no comments posted here yet
    Load More
    Please leave your comments in English
    Posting as Guest
    ×
    Rate this post:
    0   Characters
    Suggested Locations

    目录



    Kutools 让您的工作更轻松
    --300+ 功能, 立即体验 30 天免费试用。 👈

    包含 40+ 实用公式 (根据生日计算年龄...) 12 文本工具 (添加文本、删除字符...) 50+ 图表类型 (甘特图 ...) 19 插入工具 (插入二维码、从路径插入图片...) 12 转换工具 (数字到单词、货币转换......) 7 合并和拆分工具 (高级合并行、拆分 Excel 单元格...)...等等。