【问题标题】:QUERY with double condition in Google SheetsGoogle表格中具有双重条件的QUERY
【发布时间】:2019-12-16 13:41:59
【问题描述】:

我有一张类似的桌子

A     B     C     D     E
a1    b1    5     d1   
a2    b2    5     d2
a3    b1    3           e1
a4    b3    4           e2
a5    b1    5     d3    e3

如果 D 中的值不为空,我正在尝试找出显示 A、B、C、D 的查询

SELECT A,B,C,D WHERE D is not null

另外,如果 C 列中的值小于或等于 3,我需要它来显示 E 列中的值,即使 D 为空。

【问题讨论】:

    标签: arrays google-sheets google-sheets-formula google-sheets-query google-query-language


    【解决方案1】:

    尝试:

    =QUERY(A2:E, "where D is not null or C <= 3", 0)
    

    【讨论】:

    • 哦!那很简单!非常感谢!
    猜你喜欢
    • 1970-01-01
    • 2021-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多