跳到主要内容

如何在Excel中将时间舍入到最接近的小时/分钟/秒?

文档回合时间 1
本教程讨论的是在Excel中将时间舍入到最接近的小时,分​​钟或秒,如下面的屏幕快照所示。
将时间舍入到最接近的小时/分钟/秒

箭头蓝色右气泡 将时间舍入到最接近的小时/分钟/秒

舍入到最接近的1小时

选择一个单元格并键入此公式 = MROUND(A2,“ 1:00”) 进去,然后按 输入 键,然后将自动填充手柄拖动到所需的单元格。
文档回合时间 2

提示:

1.您需要首先通过选择单元格并右键单击以将其格式化为时间格式。 单元格格式 在上下文菜单中; 在里面 单元格格式 对话框,选择 时间 in 产品分类 列表,然后选择一个时间类型 Type 列表,然后单击 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) 进去,然后按 输入 键,然后将自动填充手柄拖动到所需的单元格。文档回合时间 3

提示:

1.您需要首先通过选择单元格并右键单击以将其格式化为时间格式。 单元格格式 在上下文菜单中; 在里面 单元格格式 对话框选择 时间 in 产品分类 列表中,选择一个时间类型 Type 列表,然后单击 OK.

2.您也可以使用此公式 = MROUND(A2,15 / 60/24) 将时间舍入到最接近的分钟。

3.如果要将时间舍入到前15分钟,请使用此公式 =地板(A2,15 / 60/24).

4.在上述公式中,您可以根据需要将15更改为其他数字。

将时间舍入到最接近的10秒

选择一个单元格并键入此公式 = MROUND(A2,10/86400) 进去,然后按 输入 键,然后将自动填充手柄拖动到所需的单元格。
文档回合时间 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 Tab 为 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