首页 > 解决方案 > 如何避免 Google 表格中的 NO_COLUMN 错误

问题描述

我正在尝试从同一个电子表格上的几张工作表中查询条件。但无论我做什么,总是会出现以下错误:

“NO_COLUMN:col1”

这是查询:

=QUERY({'Shipment Detail Report DHL Ship'!A2:E;Taxi!A2:E;Migvan!A2:E;Lapid!A2:E},"Select * where col1 is not null",0)

有人可以解决这个奇怪的案例吗?

标签: arraysgoogle-sheetsgoogle-sheets-formulagoogle-sheets-querygoogle-query-language

解决方案


使用Col1而不是col1

=QUERY({'Shipment Detail Report DHL Ship'!A2:E;Taxi!A2:E;Migvan!A2:E;Lapid!A2:E},
 "select * where Col1 is not null", 0)

推荐阅读