Google Apps脚本 - 使用查询组合2张,但无法完成
我想知道使用查询功能合并工作表时是否存在行数限制,如何解决?
背景
我有 2 张包含数据的工作表:Sheet1 和 Sheet2。在 Sheet1 中,我有大约 13k 行,其中包含日期和 ID:
在 Sheet2 中,我有大约 4.5k 行,我从 C 列中的时间戳中提取日期,以使日期值与 Sheet1 对齐:
目的
我想将 Sheet1 和 Sheet2 合并到 Sheet3 中,使用 unique 来同时删除具有相同 ID 和相同日期的那些行。
问题
目前在 Sheet3 中我使用以下公式:
并且 Sheet2 中的日期不知何故没有显示。但是,当我消除 Sheet1 中的大部分行,例如仅保留 10 行时,Sheet3 中的错误似乎已相应修复。
有人可以帮忙吗?谢谢!
I wonder if there's a limitation of number of rows when use query function to combine sheets, and how can we fix it?
Background
I have 2 sheets that contain data, Sheet1 and Sheet2. In Sheet1, I have around 13k rows with Date and ID:
In Sheet2 I have around 4.5k rows and I extract the date from timestamp in column C to make the date value align with Sheet1:
Purpose
I would like to combine Sheet1 and Sheet2 in Sheet3, using unique to deduplicate those rows with the same ID and same Date at the same time.
Question
Currently in Sheet3 I use this formula:
and the dates in Sheet2 somehow don't show up. But when I eliminate most of rows in Sheet1 and, for example, only retain 10 rows, the error in Sheet3 seems to be fixed accordingly.
Can someone help with this? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
演示电子表格
try:
demo spreadsheet