跳到主要內容

如何在Excel中將十進制小時/分鐘轉換為時間格式?

在某些情況下,您可以將時間記錄為十進制小時或分鐘,例如31.23,如何將十進制小時或十進制分鐘轉換為標準時間格式hh:mm:ss,如下圖所示。 在本文中,我介紹了一些技巧,可幫助您快速完成Excel中的轉換。
doc將十進制小時轉換為時間1

使用公式將十進制小時/分鐘轉換為時間格式

將時間轉換為十進制小時/分鐘/秒


箭頭藍色右氣泡 使用公式將十進制小時/分鐘轉換為時間格式

這裡有一些簡單的公式,可以幫助您快速將十進制小時或十進制分鐘轉換為hh:mm:ss。

1.選擇要輸出轉換結果的空白單元格,然後輸入此公式 = A2 / 24,將填充手柄拖到所需的單元格上。 看截圖:
doc將十進制小時轉換為時間2

2.保持公式單元格突出顯示,然後右鍵單擊以顯示上下文菜單,然後選擇 單元格格式。 而在中 單元格格式 對話框中選擇 Time 來自 類別 列表,然後從右側部分中根據需要選擇一種時間類型。 看截圖:

doc將十進制小時轉換為時間3 向右射箭 doc將十進制小時轉換為時間4

3。 點擊 OK。 現在,十進制小時已轉換為時間格式。
doc將十進制小時轉換為時間5

備註:如果要將小數分鐘轉換為時間格式,可以應用此公式 = A2 / 1440,然後將單元格格式化為所需的時間格式。 如果您想浪費幾秒鐘的時間,請使用以下公式 = A2 / 86400。 看截圖:
doc將十進制小時轉換為時間6


箭頭藍色右氣泡 將時間轉換為十進制小時/分鐘/秒

如果要將hh:mm:ss格式的時間轉換為十進制小時,分鐘或秒,則 轉換時間 的效用 Excel的Kutools 快速解決這項工作。

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

安裝後 Kutools for Excel,請執行以下操作:(立即免費下載Kutools for Excel!)

選擇要轉換的時間單元,單擊 庫工具 > 內容 > 轉換時間 > 上班時間/分鐘時間/時間到秒.
doc轉換時間1
doc轉換時間2

如果要將轉換結果保存在其他位置,請單擊 庫工具 > 內容 > 轉換時間 > 轉換時間,然後在彈出的對話框中,根據需要檢查操作,然後選擇一個單元格放置結果。
doc轉換時間3


在Excel中輕鬆地將天/年/月/小時/分鐘/秒添加到日期時間

假設您在一個單元格中有一個日期時間格式數據,現在您需要在該日期中添加若干天,年,月,小時,分鐘或秒。 通常,使用公式是所有Excel用戶的第一種方法,但是很難記住所有公式。 用 Excel的Kutools日期和時間助手 實用程序,您可以輕鬆地將天,年,月,小時,分鐘或秒添加到日期時間,此外,您可以計算出日期差或基於給定生日的年齡,而無需記住任何公式。 點擊即可獲得 30 天的全功能免費試用!
doc第二小時添加小時
 
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選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
안녕하세요.
상기 방법으로 십진수를 시간으로 변경했는데...
31.23 => 변환 했더니 7:13:48 로 나오네요... 31:13:48로 안나오는데...
서식에서도 영문과 같은 예시는 없네요....
This comment was minimized by the moderator on the site
https://cdn.extendoffice.com/images/stories/comments/sun-comment/format_time.png
Hi, you may need to format the result as 37:30:55. Select the result cell, press Ctrl + 1 to enable the Format Cells dialog, and choose 37:30:55 from the Type in the Time section.
This comment was minimized by the moderator on the site
Thanks a lot, Sunny.
:-)
This comment was minimized by the moderator on the site
Hello,
How to ask excel to show more then 31 days in format "DD:HH:MM"?
Thanks in advance.
This comment was minimized by the moderator on the site
Hi, Gogara, just format the cell as dd:hh:mm in the Format Cells dialog. Please see the screenshot:https://www.extendoffice.com/images/stories/comments/sun-comment/doc-format-dd-hh-mm.png
This comment was minimized by the moderator on the site
I have the starting time and total hours required, how will i find the ending time in excel.
This comment was minimized by the moderator on the site
My way of converting mm:ss to decimal equivalent:
2:42 in any cell e.g. A1 then in Cell A2 Formula =(A1-INT(A1))*24 - hit "enter" & Voila! there's your answer: 2.70
Hope this helps. Good luck
This comment was minimized by the moderator on the site
Okay good, but what about the other way around? Decimal minute back to mm:ss ??
This comment was minimized by the moderator on the site
Thanks for reply.
This comment was minimized by the moderator on the site
Why do you need to divide the decimal value into 24 (hours) or 1440 (min)?
This comment was minimized by the moderator on the site
You cannot format it as time format if you do not divide them.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations