Excel:如何每1000行增加一次时间

发布于 2025-02-12 15:07:38 字数 384 浏览 1 评论 0原文

我有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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

や莫失莫忘 2025-02-19 15:07:38

简单(如果有人在顶部插入行比使用row(),则更健壮)是:

  • 在A2 put = a1中,
  • 将A1001中的A1000拖动到
  • A1001 put put = a1+10/+10/ 60/24
  • 根据需要拖动

Simpler (and more robust than using row() if anybody inserts rows at the top) is:

  • in A2 put =A1,
  • drag down as far as A1000
  • in A1001 put =A1+10/60/24
  • drag down as far as you need
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文