Excel TIME duration over 24 hours

后端 未结 3 1138
情深已故
情深已故 2021-01-27 04:05

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

3条回答
  •  再見小時候
    2021-01-27 04:40

    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.

提交回复
热议问题