google-sheets - 查询 google sheet =>“null”在这个公式中是如何工作的?
问题描述
如果列 J (Col10) 为空,我有 1 个主表,我想在其中添加其他 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 我不明白的吗?
解决方案
好的,我找到了答案。
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 在非空行时都有数据,因此这会过滤掉完全空的行。
推荐阅读
- c# - 植入 INotifyPropertyChange 的添加操作后 Datagrid 未更新
- python - 在 PostgreSQL 和 Django 中创建对象
- wordpress - 显示正方形的元素图标
- javascript - 使用“使用信用卡或借记卡付款”付款时,PayPal 收据电子邮件不显示产品描述
- python - 如何使用 python 在graphviz中使用新的节点形状?
- r - 基于 R 中的条件对嵌套列表进行子集化
- powershell-2.0 - 需要重新启动远程服务器并使用 powershell 脚本发送电子邮件
- android - 无法在我的手机上安装我的第一个 android 应用程序,可安装在其他手机上
- sql - 带有 blazor 服务器端的 Include() EntityFramework Core 的问题
- python - Python - 是否会跳过“on_message”处理期间收到的 Websocket 消息?