Excel TIME持续时间超过24小时

编程入门 行业动态 更新时间:2024-10-24 09:25:00
本文介绍了Excel TIME持续时间超过24小时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

数据是:

A1 = 29. B1 = 30. C1 = 2. D1 = TIME(A1, B1, C1).

如何让D1返回29:30:02?

将D1单元格格式化为[hh]:mm:ss无效!

如果我一个月内跑了29个小时,Excel会认为我只跑了5个小时.

谢谢.

谢谢!!我得到了它!!! D1 = TIME(A1, B1, C1) + INT(A1 / 24)

解决方案

您得到的结果正是时间函数起作用:

小时必填.从0(零)到32767的数字代表 小时.任何大于23的值都将除以24,然后 余数将被视为小时值.例如,TIME(27,0,0) = TIME(3,0,0)= .125或3:00 AM.

你可以做

D1

中的

=A1/24+B1/24/60+C1/24/60/60

然后格式为[hh]:mm:ss的结果值将显示29:30:02.

这是因为在Excel中1是1天.所以1/24是1小时,1/24/60是1分钟,1/24/60/60是1秒.

Data is:

A1 = 29. B1 = 30. C1 = 2. D1 = TIME(A1, B1, C1).

How can I get D1 to return 29:30:02?

Formatting the D1 cell to [hh]:mm:ss does NOT work!

If I ran for 29 hours in a month, Excel thinks I ran for only 5 hours.

Thank you.

Edit: Thank you!! I got it!!! D1 = TIME(A1, B1, C1) + INT(A1 / 24)

解决方案

The result you get is exactly how TIME function works:

Hour Required. A number from 0 (zero) to 32767 representing the hour. Any value greater than 23 will be divided by 24 and the remainder will be treated as the hour value. For example, TIME(27,0,0) = TIME(3,0,0) = .125 or 3:00 AM.

You could do

=A1/24+B1/24/60+C1/24/60/60 in D1

Then the resulting value formatted as [hh]:mm:ss will show 29:30:02.

That is because 1 is 1 day in Excel. So 1/24 is 1 hour, 1/24/60 is 1 minute and 1/24/60/60 is 1 second.

更多推荐

Excel TIME持续时间超过24小时

本文发布于:2023-10-30 22:50:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544232.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:持续时间   小时   Excel   TIME

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!