跳到主要內容

如何在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.

保養竅門: 在小時和分鐘,天之間轉換:

將小時轉換為分鐘: = A2 * 60
將分鐘轉換為小時: = A2 / 60
將小時數轉換為天數: = A2 / 24
將天數轉換為小時數: = A2 * 24

2.使用轉換功能在小時,分鐘,秒或天之間轉換時間

很難記住轉換因子嗎? 您也可以使用轉換功能來轉換補間小時,分鐘,秒或天。

要將小時轉換為秒:

請輸入此公式 = CONVERT(A2,“ hr”,“ sec”) 輕鬆一次將細胞從幾小時轉換為幾秒鐘。 看截圖:

doc將時間轉換為秒2

如果要將秒數轉換為小時數,只需應用以下公式: = CONVERT(A2,“ sec”,“ hr”).

保養竅門:只需在公式中替換單位名稱,即可輕鬆在這些時間測量之間進行轉換。

尺寸 在公式中使用
每年 “年”
“天”
小時 “ hr”
分鐘 “ mn”
其次 “秒”

不需要記住轉換因子和函數, Excel的Kutools's 單位換算 工具可以幫助您輕鬆處理它。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用

1。 選擇您要使用的範圍。

2。 點擊 庫工具 > 內容 > 單位換算。 看截圖:

3。 指定 Time 的下拉框中的單位 單位,然後在左側框中選擇源單位,在右側框中選擇轉換後的單位,您將在 預覽框。 看截圖:

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).


您是否對公式感到厭倦,所以在這裡,我可以為您介紹一個方便易用的工具-Excel的Kutools,其 轉換時間 功能,您無需任何公式即可快速完成這項工作。

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

1。 選擇要轉換的時間單元。

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

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

doc將時間轉換為秒9

保養竅門:如果要將轉換後的結果放置在另一個位置,則可以轉到 轉換時間 通過單擊對話框 庫工具 > 內容 > 轉換時間轉換時間 對話框,選擇所需的轉換類型,然後檢查 保存到其他位置 複選框,然後單擊要放置結果的單元格,請參見屏幕截圖:

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選項卡為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