在Google表中的日期列表之间自动填充日期,并与其他列链接
我有一个电子表格列出何时员工请求离开业务。
我可以使用哪种公式根据馈送到电子表格中的数据来生成以下输出?
我需要:
- 要生成单独的行以显示员工不在的每个个人日子,链接到其名称的
- 列表中,将所有员工包括在列表中
这是一个 sample everalsheet 包含我已经组合在一起的数据。不幸的是,我遇到的唯一日期之间的自动填充是:
=ArrayFormula((TO_DATE(row(indirect("A"&Input!B2):indirect("A"&Input!C2)))))
但是,这也不是列A列的内容,并且一次不会处理大量数据。
I have a spreadsheet that lists when an employee requests leave away from the business.
What formula can I use to produce the below output based on the data fed into the spreadsheet please?
I require:
- Separate rows to be generated to show each individual day that the employee is off for, linked to their name
- The list to include all employees in the list
This is a Sample Spreadsheet containing the data I have put together. Unfortunately the only formula I have come across that autopopulates between dates is:
=ArrayFormula((TO_DATE(row(indirect("A"&Input!B2):indirect("A"&Input!C2)))))
however, this does not also bring across the contents of Column A and does not process numerous rows of data at a time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试:
Try:
一种方法是使用
sequence()
,如下:One way to do that is with
sequence()
, like this:另一个:
= arrayformula(ifError(query(split(flatten)(filter(a2:a&“〜”〜”& if(((b2:b+sequence(1,60)))> c2:c ,, b2: b+序列(1,60)),a2:a<>“”)),“〜”,1,0),“ select * whene col2不为null”),{“”,“”,“})))))))))
这将最多可容纳60天。您只需将两个实例的
60
设置为每人最大的连续天数。Another:
=ArrayFormula(IFERROR(QUERY(SPLIT(FLATTEN(FILTER(A2:A&"~"&IF((B2:B+SEQUENCE(1,60))>C2:C,,B2:B+SEQUENCE(1,60)),A2:A<>"")),"~",1,0),"Select * WHERE Col2 Is Not Null"),{"",""}))
This will handle up to 60 days off at a time. You can just set the two instances of
60
to your maximum number of contiguous days off per person.