简体   繁体   English

Google Spreadsheet-以工期格式转换总小时数

[英]Google Spreadsheet - Convert total hours in duration format

How do I convert a number of hours in duration? 如何转换持续时间?

Example: in cell A1 I have 176 . 示例:在单元格A1中,我有176

I want cell A2 to have 176:00:00 我希望单元格A2具有176:00:00

I want to transform the number 176 in 176 hours (duration). 我想在176小时(持续时间)中转换176。 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! 因为如果我在一个单元格中键入176并将其格式设置为持续时间,它会转换为4224:00:00以增加收益……谢谢!

The issue is how time is viewed. 问题是如何查看时间。 Dates are integers while time is a decimal based on a 24 hour period being 1. 日期是整数,而时间是小数,基于24小时为1。

To convert a number to time one must divide it by 24. In A2: 要将数字转换为时间,必须将其除以24。在A2中:

=A1/24

Will give a decimal value that then can be formatted as time that will give the correct number of hours. 将给出一个十进制值,然后可以将其格式化为时间,以给出正确的小时数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以仅将Microsoft Excel电子表格的值和格式转换为Google电子表格(而不是公式)? - Is it possible to only convert the values and format of a Microsoft excel spreadsheet to a google spreadsheet (so not the formulas)? 每 n 小时更新一次谷歌电子表格 - Update google spreadsheet every n hours Google 电子表格:格式化 IMPORTXML 值 - Google Spreadsheet: format IMPORTXML value 如何将默认格式更改为“总小时数:总分钟数:excel中的秒”? - How to change the default format to Total hours: Total minute: Sec in excel? 按类别分类的总数据-Excel / Google Drive电子表格 - Total data by category - Excel / Google Drive Spreadsheet Google Spreadsheet中重叠日期范围内的总天数 - Total days in overlapping date range in Google Spreadsheet Google电子表格或excel中每个学生的总分 - Total points for each student in Google spreadsheet or excel 在Excel中将ISO 8601格式转换为小时 - Convert ISO 8601 format to Hours in Excel Excel-两次之间的总小时数(不是h:mm格式) - Excel - Total hours between two times (not in h:mm format) 当我输入总分钟数时,如何获得 excel 到 output 的持续时间(以小时和分钟为单位)? - How do I get excel to output duration of time in hours and minutes when I input total minutes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM