简体   繁体   English

在 excel 中增加日期时间值的公式

[英]formula to increment date time value in excel

I have intial date time in this format '2017-01-01 09:00:00.000' I want to increment it by preferably by millisecond.我有这种格式的初始日期时间 '2017-01-01 09:00:00.000' 我想以毫秒为单位增加它。 Even second will do.即使是第二个也行。 I can't find formula for to increment Date time in particular format.我找不到以特定格式增加日期时间的公式。 What I found was Time(hours,minutes,seconds) but it does not work.我发现的是时间(小时,分钟,秒),但它不起作用。

Assuming your date is in Cell A1.假设您的日期在单元格 A1 中。 The formula to add 1 second would be =A1+1/86400.添加 1 秒的公式为 =A1+1/86400。 To add a millisecond would be =A1+1/86400000.添加毫秒将是 =A1+1/86400000。 To add 5 milliseconds would be A1+5/86400000添加 5 毫秒将是 A1+5/86400000

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM