Google Spreadsheet - Convert total hours in duration format

时间:2016-04-04 18:45:12

标签: excel google-sheets

How do I convert a number of hours in duration?

Example: in cell A1 I have 176.

I want cell A2 to have 176:00:00

I want to transform the number 176 in 176 hours (duration). Is that possible? Because if I type 176 in a cell and format as duration, it converts to 4224:00:00 for some reasion ... thanks!

1 个答案:

答案 0 :(得分:4)

The issue is how time is viewed. Dates are integers while time is a decimal based on a 24 hour period being 1.

To convert a number to time one must divide it by 24. In A2:

=A1/24

Will give a decimal value that then can be formatted as time that will give the correct number of hours.