首页 > 解决方案 > Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: Col5

问题描述

Trying to Import data from another sheet once another column value is equal the "yes"

Tried the following:

=query(ImportRange("1yRp2JG_ttPbly5A7HmgJZwH-Xn8l3GKJxo8DshzffOQ","validated!E2:E"),"SELECT Col5 WHERE Col12=" & "'" & L2 & "'", Yes)

Gives me the above error

标签: javascriptgoogle-sheetsimport

解决方案


仅导入两列(B 和 C)时,没有第 5 列,也没有仅导入一列(E)。也许您想导入 B:F,但如果在这种情况下使用 JavaScript,您应该提供一个最小的、可重现的示例


推荐阅读