【问题标题】:Query google sheet => how does "null" work in this formula?查询 google sheet =>“null”在这个公式中是如何工作的?
【发布时间】:2020-09-21 11:58:50
【问题描述】:

如果 J (Col10) 列为空,我想在其中添加 2 个其他工作表中的所有数据。

这个公式不起作用:

=query({'BXL | hair salon | Export'!1:1000; 'BXL | Bike shop | export'!1:1000}, "select * where Col10 is null", 1)

在这种情况下,我只能从第一张表中获得结果。 (BXL | 美发沙龙)

相反,我执行以下操作(并添加列 j 不为空的所有数据)确实有效(但这不是我需要的):

=query({'BXL | hair salon | Export'!1:1000; 'BXL | Bike shop | export'!1:1000}, "select * where Col10 is not null" , 1)

这怎么可能? null 有什么我不明白的地方吗?

【问题讨论】:

    标签: google-sheets null google-query-language


    【解决方案1】:

    好的,我找到了答案。

    Not null 也采用完全空行的单元格。当我向下滚动方式(方式)时,我可以看到结果。

    我现在这样修复它:

    =query({'BXL | hair salon | Export'!1:1000; 'BXL | Bike shop | export'!1:1000}, "select * where (Col10 is NULL and Col2 is not null )", 1)

    由于每列 B 在非空行时都有数据,因此这会过滤掉完全空的行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-25
      • 2017-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-13
      • 1970-01-01
      相关资源
      最近更新 更多