跳到主要內容

如何在Excel中將時間舍入到最接近的小時/分鐘/秒?

作者:孫 最後修改時間:2020-04-28
文檔回合時間 1
本教程討論的是在Excel中將時間舍入到最接近的小時,分鐘或秒,如下面的屏幕截圖所示。
將時間舍入到最接近的小時/分鐘/秒

箭頭藍色右氣泡 將時間舍入到最接近的小時/分鐘/秒

舍入到最接近的1小時

選擇一個單元格並鍵入此公式 = MROUND(A2,“ 1:00”) 進去,然後按 Enter 鍵,然後將自動填充手柄拖動到所需的單元格。
文檔回合時間 2

提示:

1.您需要首先通過選擇單元格並右鍵單擊以將其格式化為時間格式。 單元格格式 在上下文菜單中; 在裡面 單元格格式 對話框,選擇 Time in 類別 列表,然後選擇一個時間類型 類別 列表,然後單擊 OK.

2.您還可以使用這些公式將時間四捨五入到最接近的小時 =ROUND(A2/(1/24),0)*(1/24) or = MROUND(A2,1 / 24).

3.如果要將時間四捨五入到前一小時,可以使用此公式 =地板(A2,1 / 24).

4.在上述公式中,您可以根據需要將1更改為其他數字。

四捨五入到最接近的15分鐘

選擇一個單元格並鍵入此公式 =ROUND(A2*(24*60/15),0)/(24*60/15) 進去,然後按 Enter 鍵,然後將自動填充手柄拖動到所需的單元格。文檔回合時間 3

小提示:

1.您需要首先通過選擇單元格並右鍵單擊以將其格式化為時間格式。 單元格格式 在上下文菜單中; 在裡面 單元格格式 對話框選擇 Time in 類別 列表中,選擇一個時間類型 類別 列表,然後單擊 OK.

2.您也可以使用此公式 = MROUND(A2,15 / 60/24) 將時間四捨五入到最接近的分鐘。

3.如果要將時間舍入到前15分鐘,請使用此公式 =地板(A2,15 / 60/24).

4.在上述公式中,您可以根據需要將15更改為其他數字。

將時間舍入到最接近的10秒

選擇一個單元格並鍵入此公式 = MROUND(A2,10/86400) 進去,然後按 Enter 鍵,然後將自動填充手柄拖動到所需的單元格。
文檔回合時間 4

小提示:

1.您需要首先通過選擇單元格並右鍵單擊以將其格式化為時間格式。 單元格格式 在上下文菜單中,然後在菜單中選擇一個時間類型 單元格格式 對話。

2.在上面的公式中,您可以根據需要將10更改為其他數字。 例如使用 = MROUND(A2,20/86400) 將時間舍入到最接近的20秒。


在Excel中快速將時間轉換為十進制值

例如,您有一個需要轉換為十進制小時,分鐘或秒的時間列表,如何在Excel中快速輕鬆地解決該問題? 的 轉換時間 of Kutools用於 Excel,可以為您幫個忙。   點擊免費試用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 (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Buenos días, estoy intentando "redondear" los segundos pero sin que se cambie los minutos en un formato HH:MM:SS. Exemplo: 13:27:33 que aparezca solamente 13:27:00
This comment was minimized by the moderator on the site
Hi, try this formula then format result as time.
=MROUND(A1,"0:01")
This comment was minimized by the moderator on the site
Quale formula si può usare per arrotondare al quarto d'ora, considerando che, per l'orario d'ingresso il minuto 15/30/45/00 deve essere successivo al minuto della timbratura mentre per l'uscita deve accadere esattamente il contrario?

Esempio:
ingresso 7:42 -> 7:45
uscita 12:18 -> 12:15
This comment was minimized by the moderator on the site
Estoy tratando de redondear minutos es decir si esta 1:40 se quede 2:00 minutos o 1:04 solo 1:00 minuto
This comment was minimized by the moderator on the site
HOLA ESTOY TRATANDO DE REDONDEAR LAS HORAS, EJEMPLO SI LLEGA A LA HORA CON FRACION DE 15 MINUTOS SE QUEDE EN LA HORA, SI PASA EL MINUTO 16 HASTA EL MINUTO 45 SE QUEDE EN HORAS Y MEDIA Y DESPUES DEL MINUTO 46 SE SUBA A LA SIGUIENTE HORA. GRACIAS
This comment was minimized by the moderator on the site
Hi, FREDY, you can try this formula
=IF(MINUTE(A3)<15,MROUND(A3,"1:00"),IF(MINUTE(A3)<45,MROUND(A3,"0:30"),MROUND(A3,"1:00")))
A3 is the cell that contains the time.
This comment was minimized by the moderator on the site
Thank You for posting this!
This comment was minimized by the moderator on the site
Hi, your formula for rounding to the nearest minute should be MROUND(A2,1/60/24), thanks for great work on these.
This comment was minimized by the moderator on the site
hi do have any formula to round up total hours 1 minute into 1 hours, example 124:01-125:00
This comment was minimized by the moderator on the site
Hello, jaime, this fomrula can help you =ROUNDUP( B2*24, 0) / 24
This comment was minimized by the moderator on the site
Thank you for posting a way to round the time down to the nearest hour with the Floor function! It's the only thing that actually worked!
This comment was minimized by the moderator on the site
Hi,

I’m trying to round down over time hours. Everything should be in down to the hour examples
1:56 – 1:00
2:17 – 2:00

I’m using floor currently but have come to a little problem. When it is exactly on the hour like 1:00, 2:00, 3:00, it rounds down to 0:00, 1:00, 2:00 but should stay at respective hours. Any possible solution?

Thanks!
This comment was minimized by the moderator on the site
Sorry for reply you too late, I did not found the direct formula to solve your problem, but you can add 1:00 into a cell, and then use =FLOOR(A2,1/24)-the cell contains 1:00 to get the correct answer.
This comment was minimized by the moderator on the site
What is the easiest formula to round Work Time Hours down to the nearest tenth of an hour?
This comment was minimized by the moderator on the site
=ROUND(G2*(1*60/30),0)/(1*60/30) , you mean like this?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations