Excel:如何每1000行增加一次时间
我有DD-MM-YYYY HH:MM:SS格式的日期时间列。我需要每1000行将此列值增加10分钟。一旦完成增量,该值将保持1000行的恒定,然后再增加一个增量。
我尝试通过使用时间函数来使用标准增量选项,但是它可用于时间或日期,但我也不适用于
=TIME(HOUR($L$1),MINUTE($L$1),SECOND($L$1)+INT((ROW()-1/1000)))
我也尝试使用mod函数,但是它是在15上抛出#value!
错误。 -06-2022 01:00:00手机值
=x1+IF(MOD(ROW()-ROW(A$1),1000)=0,10,0)
您可以在这方面提供帮助
I have a date-time column in DD-MM-YYYY HH:MM:SS format. I need to increment this column value by 10 minutes once in every 1000 rows. Once an increment has been done, the value will remain constant for 1000 rows after which another increment will be made.
I tried to use the standard increment option by using time function, but its available for either time or date but not for both
=TIME(HOUR($L$1),MINUTE($L$1),SECOND($L$1)+INT((ROW()-1/1000)))
I also tried to use MOD function, but it is throwing #VALUE!
error on 15-06-2022 01:00:00 cell value
=x1+IF(MOD(ROW()-ROW(A$1),1000)=0,10,0)
Can you please help in this regard
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单(如果有人在顶部插入行比使用row(),则更健壮)是:
= a1
中,= a1+10/+10/ 60/24
Simpler (and more robust than using row() if anybody inserts rows at the top) is:
=A1
,=A1+10/60/24