跳到主要内容

如何在Excel中将秒转换为时间(hh mm ss),反之亦然?

您是否曾经尝试将秒数转换为hh:mm:ss时间格式,或在Excel中将时间格式显示为秒? 本文中,我将讨论解决此任务的一些技巧,请阅读以下详细信息:

使用公式将秒数转换为时间格式

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


箭头蓝色右气泡 使用公式将秒数转换为时间格式

假设我在一列中具有以下秒数,要将其转换为天,小时,分钟,秒的时间格式,可以应用公式:

doc将秒转换为时间1

1。 输入以下公式: = A2 / 86400 到要输出结果的空白单元格中,然后将填充手柄向下拖动到要应用此公式的单元格上,您将得到一些数字,如以下屏幕截图所示:

doc将秒转换为时间2

2。 选择这些公式单元格,然后右键单击以选择 单元格格式 弹出菜单中的选项 单元格格式 对话框中的 联系电话 标签,点击 定制版 选项,然后输入 dd:hh:mm:ssType 框,请参见屏幕截图:

doc将秒转换为时间3

3。 然后点击 OK 按钮,并且单元格已显示为dd:hh:mm:ss时间格式,请参见屏幕截图:

doc将秒转换为时间4

备注:这是另一个公式,也可以帮助您将秒数显示为文本格式,例如:x小时x分钟x秒: = TEXT(A2 / 86400,CHOOSE(MATCH(A2,{0,60,3600},1),“ s”“ sec”“”,“ m”“ min”“ s”“ sec”“”,“ [ h]“” hrs“” m“” min“” s“” sec“”“)),应用此公式后,您将获得以下结果,请参见屏幕截图:

doc将秒转换为时间5


将hh:mm:ss时间格式转换为小时/分钟/秒:

Kutools for Excel's 转换时间 功能可以帮助您根据需要将多种时间格式转换为小时,分钟或秒。 点击立即下载并免费试用 Kutools for Excel!

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!


箭头蓝色右气泡 使用 Kutools for Excel 将 hh:mm:ss 时间格式转换为秒/分钟/小时

与上述问题相反,如果要将hh:mm:ss时间格式转换为秒,分钟或小时,我可以推荐一个有用的工具-Kutools for Excel,其 转换时间 功能,您可以将时间格式快速转换为小时,分钟或秒数。

安装后 Kutools for Excel,请执行以下操作:

1。 选择您想要转换的时间。

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

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

doc将秒转换为时间7

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

doc将秒转换为时间8

然后点击 OK 按钮,转换后的结果将位于您选择的单元格中。

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


Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

最佳办公生产力工具

🤖 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 (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Is it possible to add a column of times and get a correct result?
0:31:49
0:43:28
0:46:54
0:15:16
1:19:05
0:07:26
0:10:02
0:22:50
0:01:58
0:27:30
0:54:14
0:39:56
1:12:10
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
I am converting from seconds to format 8 hours 6 minutes 43 seconds this way=LET(hrs,ROUNDDOWN(D2/3600,0),mnts,ROUNDDOWN((D2-(hrs*3600))/60,0),CONCATENATE(hrs," hours ",mnts," minutes ",ROUND((D2-(hrs*3600)-(mnts*60)),0)," seconds"))

LET function is great providing you almost VBA like freedom in assigning variables and values to them.
This comment was minimized by the moderator on the site
It's exactly what I was looking for. Especially TEXT(A2/86400,CHOOSE(MATCH(A2,{0,60,3600},1),"s ""sec""","m ""min"" s ""sec""","[h] ""hrs"" m ""min"" s ""sec""")),Thank you.
This comment was minimized by the moderator on the site
Thaks a lot of .............. Its works successfully
This comment was minimized by the moderator on the site
Lets say I have C2=1 (as hour), D2=5 (as minutes), E2=0 (as seconds) and in F2=3900 as seconds.

In 3900 seconds is multiplied by 10% up to 90%

in A5=F2*0, B5=F2*0.1, C5=F2*0.2 up to J5=F2*0.9 which is 3500 but I wanted the results to be in time format which is 58:30.
This comment was minimized by the moderator on the site
Hi


How to convert seconds to hours please help me.
This comment was minimized by the moderator on the site
Hello, Baskari,
If you just want to convert second numbers to hours, please apply this simple formula:
=A1/3600

Please try, hope it can help you!
This comment was minimized by the moderator on the site
how to convert DD:H:MM to H:MM in excel 2007 For ex. 02(day):(01 hours):10(min) to 49(Hours):10(min)
This comment was minimized by the moderator on the site
Hello, sachin,
The following article can help you to solve your problem, please view it.
https://www.extendoffice.com/documents/excel/4050-excel-convert-dd-hh-mm-to-hours.html

Hope it can help you, thank you!
This comment was minimized by the moderator on the site
How to convert seconds to hh:mm:ss Please help me.
This comment was minimized by the moderator on the site
Hi, baskari,
To convert the number of seconds to hh:mm:ss format, please apply the below formula:

=TEXT(A1/(24*60*60),"hh:mm:ss")

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
How to convert DD:H:MM to H:MM in excel
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations