我可以自动化excel或Google表格单元格在少于10分钟或小于1分钟的时间内包含领先零的时间吗?
我正在为我的朋友和我的朋友制作5个竞争对手时的电子表格,以便轻松地比较我们的时间。我正在尝试获取它,以便我们进入的比赛时间最终以[分钟]的格式:[秒]。[毫秒]
,分别有2、2和3位数字(用于格式一致性)。如果时间少于两个分钟的时间,我希望[分钟]部分读取“ 00”,“ 01”,“ 02”等。
例如,如果我输入48秒的时间和304毫秒,我希望它读00:48.304
,如果我输入2分钟,13秒和696毫秒的时间,我希望它读取02:13.696
无论是否包括
使用Google表的领先零,我都可以使用自定义号码格式00:00.000
进行第一个示例,但是Excel不接受该格式。 ..在Excel和Sheet中,我还尝试使用自定义格式mm:ss.000
,但是如果我从第一个示例中输入数字,则它们输入1900-02-- 17 07:17:46
进入公式栏,并将其显示为17:45.600
,而不是显示为00:48.304
在第二个示例中,我可以它可以使其在Google表中工作,但它似乎确实在Excel中起作用。床单将显示正确的时间,但不会插入任何领先的零。使用00:00.000
或mm:ss.000
格式化,表格将显示2:13.696
,除非手动输入领先的零。使用mm:ss.000
格式,Excel将正确显示02:13.696
对不起,如果已经有一个答案,但是如果有的话,我还没有能够找到
我正在使用Excel 2016,版本2205和Google表
I'm making a spreadsheet of Forza Horizon 5 Rivals times for my friends and I to use to compare our times easily. I'm trying to get it so that the race times we're entering end up in the format [minutes]:[seconds].[milliseconds]
, with 2, 2, and 3 digits, respectively (for formatting consistency). If the time is less than a two-digit number of minutes, I want the [minutes] section to read "00", "01", "02", etc.
For example, if I enter a time of 48 seconds and 304 milliseconds, I want it to read 00:48.304
, and if I enter a time of 2 minutes, 13 seconds, and 696 milliseconds, I want it to read 02:13.696
whether or not the leading zeros are included
Using Google Sheets, I've been able to do the first example by using the custom number format 00:00.000
, but Excel won't accept that as a format... In both Excel and Sheets, I've also tried using the custom format mm:ss.000
, but if I input the number from my first example, they input 1900-02-17 07:17:46
into the formula bar, and displays it as 17:45.600
instead of displaying as 00:48.304
For the second example, I can't get it to work in Google Sheets, but it does seem to work in Excel. Sheets will display the correct time, but won't insert any leading zeros. Using either the 00:00.000
or mm:ss.000
formatting, Sheets will display 2:13.696
unless the leading zero is entered manually. Using the mm:ss.000
format, Excel will correctly display 02:13.696
Sorry if there's already an answer to this somewhere, but if there is, I haven't been able to find it
I'm using Excel 2016, version 2205 and Google Sheets
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不仅是格式的问题。当您键入47.374并将其转换为几分钟时,您会发现大约1136小时(47天)。因此,您将必须检测是否存在
:
并通过24 60 60(应用格式)进行更正This is not only a question of format. When you type 47.374 and transform it to minutes, you will find about 1136 hours (47 days). So you will have to detect if there is
:
and correct it by dividing by 246060, the apply formatting