googlesheets查询以取消表
- 表 - 1 - 数据每天更新
- 表 - 2 - 数据备份从 1 张
- 表 - Diff - 是我如何得到差异 atm
- 表 - WIP - 是我目前正在尝试做什么,
我试图
=query('1'!A:N; "SELECT C WHERE (A CONTAINS '"&A2&"') ";0)-query('2'!A:N; "SELECT C WHERE (A CONTAINS '"&A2&"') ";0)
在每个单元格上从 2 中减去值表 1,它可以工作,但在 WIP A1 上效率不高
,我试图用 1 个查询来完成它,
=query({'1'!A:N;'2'!A:N}; "SELECT Col1, sum(Col3) WHERE Col1 is not null GROUP BY Col1";1)
显然它不是总和,但我设置为示例,因为我想要相反,没有用于减法的聚合器,所以有没有办法在这个例子中从每个工作表中调用 Col3 并制作像 '1'Col3-'2'Col3 ?或任何其他方式来完成它?
- Sheet - 1 - data is updated daily
- Sheet - 2 - data is backed up from 1
- Sheet - Diff - is how im getting the difference atm
- Sheet - WIP - is what im trying to do
currently im trying to substract values sheet 1 from 2 with
=query('1'!A:N; "SELECT C WHERE (A CONTAINS '"&A2&"') ";0)-query('2'!A:N; "SELECT C WHERE (A CONTAINS '"&A2&"') ";0)
on each cell, it works but its not efficient
on WIP A1, im trying to do it with 1 query
=query({'1'!A:N;'2'!A:N}; "SELECT Col1, sum(Col3) WHERE Col1 is not null GROUP BY Col1";1)
obviously its not sum, but i set as exemple cos i want the oposite, there is no agregator for substraction, so is there a way to call in this example Col3 from each Sheet and make like '1'Col3-'2'Col3 ? or any other way to acomplish it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常:
删除范围B2:g中的所有内容,并在B2中使用此内容:
要删除可以使用的零:
in general:
delete everything in range B2:G and use this in B2:
to remove zeros you can use: