跳到主要内容

如何在Excel中的小时,分​​钟,秒或天之间转换?

您如何计算一天半的时间是多少分钟,或者五百万秒的时间是多少小时? 本文将向您展示一些简单的处理方法。

使用功能在时,分,秒或天之间转换

使用 Kutools for Excel 在小时、分钟、秒或天之间进行转换

使用公式将hh:mm:ss时间格式转换为分钟,秒或小时

使用 Kutools for Excel 将 hh:mm:ss 时间格式转换为分钟、秒或小时


1.使用换算系数在小时,分钟,秒或天之间转换时间

我们知道 1小时= 60分钟= 3600秒= 1/24天。 因此,我们可以乘以这些因素来转换时间度量。

在小时到秒之间转换:

例如,要将小时转换为秒,请输入公式 = A2 * 3600,然后将填充手柄向下拖动到单元格以获得所需的结果,请参见屏幕截图:

doc将时间转换为秒1

如果要将秒数转换为小时数,只需应用以下公式: = A2 / 3600.

Tips: 在小时和分钟,天之间转换:

将小时转换为分钟: = A2 * 60
将分钟转换为小时: = A2 / 60
将小时数转换为天数: = A2 / 24
将天数转换为小时数: = A2 * 24

2.使用转换功能在小时,分钟,秒或天之间转换时间

很难记住转换因子吗? 您也可以使用转换功能来转换补间小时,分钟,秒或天。

要将小时转换为秒:

请输入此公式 = CONVERT(A2,“ hr”,“ sec”) 轻松一次将细胞从几小时转换为几秒钟。 看截图:

doc将时间转换为秒2

如果要将秒数转换为小时数,只需应用以下公式: = CONVERT(A2,“ sec”,“ hr”).

Tips:只需在公式中替换单位名称,即可在这些时间测量之间轻松转换。

数据监测 在公式中使用
“年”
“天”
小时 “小时”
分钟 “ mn”
其次 “秒”

不需要记住转换因子和函数, Kutools for Excel's 单位换算 工具可以帮助您轻松处理它。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用

1。 选择您要使用的范围。

2。 点击 库工具 > 内容 > 单位换算。 看截图:

3。 指定 时间 的下拉框中的单位 单位,然后在左侧框中选择源单位,在右侧框中选择转换后的单位,您将在 预览框。 看截图:

doc将时间转换为秒4

4。 点击 Ok or 使用。 小时和分钟之间的时间转换如下所示的屏幕截图:

doc将时间转换为秒5

备注:如果要将源单位保留在单元格中并在注释中显示结果,则可以检查 将结果添加为评论。 看截图:

doc将时间转换为秒6

单击此处了解有关单位转换的更多信息。

 立即下载和免费试用Excel的Kutools!


有时您可能会得到一个包含小时,分钟和秒的时间,现在您可以使用以下公式将其转换为分钟,秒或小时。

将hh:mm:ss时间格式转换为小时:

请应用以下公式将hh:mm:ss时间格式转换为小时: =小时(A2)+分钟(A2)/ 60 +秒(A2)/ 3600,然后将填充手柄拖到要包含此公式的单元格中。

doc将时间转换为秒7

提示:

要将hh:mm:ss时间格式转换为分钟: =((HOUR(A2)*60)+MINUTE(A2)+(SECOND(A2)/60));

要将hh:mm:ss时间格式转换为秒: =小时(A2)* 3600 +分钟(A2)* 60 +秒(A2).


您是否对公式感到厌倦,所以在这里,我可以为您介绍一个方便易用的工具-Kutools for Excel,其 转换时间 功能,您无需任何公式即可快速完成这项工作。

安装后 Kutools for Excel,请执行以下操作: 立即免费下载Kutools for Excel! )

1。 选择要转换的时间单元。

2。 点击 库工具 > 内容 > 转换时间,然后选择 上班时间 / 分钟时间 / 时间到秒 根据需要,请参见屏幕截图:

3。 并将所选的时间单元转换为所需的小时,分​​钟或秒,请参见屏幕截图:

doc将时间转换为秒9

Tips:如果要将转换后的结果放在另一个位置,则可以转到 转换时间 通过单击对话框 库工具 > 内容 > 转换时间转换时间 对话框中,选择所需的转换类型,然后检查 保存到其他位置 复选框,然后单击要放置结果的单元格,请参见屏幕截图:

doc将时间转换为秒10

立即下载和免费试用Excel的Kutools!


相关文章:

如何在kb和mb,gb,tb之间转换,反之亦然?

最佳办公生产力工具

🤖 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 (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have 36904 sec, i want to have it in hour, minute and seconds, how?
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Vraagje: Ik moet van 04:22 naar 00:04:22, welke formule kan ik gebruiken?
This comment was minimized by the moderator on the site
Hi there,

There is a workaround with Kutools:
1. Select 04:22 and then click To Actual) on Kutools tab.
2. On Kutools tab, in Editing group, select Text > Add Text. In the pop-up dialog, enter "0:" in the first textbox, and select Before first character.
https://www.extendoffice.com/images/stories/comments/ljy-picture/add-text.png
3. Select the cell, press Ctrl + 1, and then click Time, and select a time format you want.

Now, the hour:munite is converted to minute:second.

Amanda
This comment was minimized by the moderator on the site
if work start on 5-3-15 10:30 PM proposed work completed after 76478hr 45 minutes and daily working hrs are 6hrs how to calculate work completed time and date
This comment was minimized by the moderator on the site
Hoe zet ik een tijd bijv 12:15u om naar getal 12,25 in excel?

Alvast bedankt!
This comment was minimized by the moderator on the site
Hi there,
You can simply multiply the time by 24.
https://www.extendoffice.com/images/stories/comments/ljy-picture/time-to-hour-number.png

Note that you should apply the general format on the cell (B2): Select B2, press Ctrl + 1, click General. Then click OK.
https://www.extendoffice.com/images/stories/comments/ljy-picture/time-to-hour-number-format.png

Amanda
This comment was minimized by the moderator on the site
In the example - Convert hh:mm:ss time format to hours:
Time is 24:12:09 converted to 0.2025 hours. This is not correct.

This comment was minimized by the moderator on the site
Hi, Joshi,Normally, in Excel the time 24:12:09 is recognized as 00:12:09 by default.
This comment was minimized by the moderator on the site
Can anyone help with the desired output:- Input Data- 2 days 2 hours 2 minutes 2 seconds Desired Output - 50:02:02
This comment was minimized by the moderator on the site
How to convert DD:H:MM format in to Hours For Ex.03:01:10 convert to hours formats 36:10(h:mm)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations