跳到主要內容

如何在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:ss類別 框,請參見屏幕截圖:

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時間格式轉換為小時/分鐘/秒:

Excel的Kutools's 轉換時間 功能可以幫助您根據需要將多種時間格式轉換為小時,分鐘或秒。 點擊下載並立即免費試用Excel的Kutools!

Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!


箭頭藍色右氣泡 使用Kutools for Excel將hh:mm:ss時間格式轉換為秒/分鐘/小時

與上述問題相反,如果要將hh:mm:ss時間格式轉換為秒,分鐘或小時,我可以推荐一個有用的工具-Excel的Kutools,其 轉換時間 功能,您可以將時間格式快速轉換為小時,分鐘或秒數。

安裝後 Excel的Kutools,請執行以下操作:

1。 選擇您想要轉換的時間。

2。 點擊 庫工具 > 內容 > 轉換時間“,然後選擇” 上班時間 / 分鐘時間 / 時間到秒 根據需要,請參見屏幕截圖:

3。 並且您選擇的時間單元已轉換為所需的小時,分鐘或秒,請參見屏幕截圖:

doc將秒轉換為時間7

備註:如果您不喜歡原始單元格中的轉換結果,則可以轉到 轉換時間 通過單擊對話框 庫工具 > 內容 > 轉換時間轉換時間 對話框,選擇所需的轉換類型,然後檢查 保存到其他位置 複選框,然後單擊要放置結果的單元格,請參見屏幕截圖:

doc將秒轉換為時間8

然後點擊 OK 按鈕,轉換後的結果將位於您選擇的單元格中。

立即下載和免費試用Excel的Kutools!


Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

最佳辦公生產力工具

🤖 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 (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