简体   繁体   English

Google表格中具有双重条件的QUERY

[英]QUERY with double condition in Google Sheets

I have a table similar to this我有一张与此类似的表

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

I'm trying to figure out a query that shows A,B,C,D if the value in D is not empty如果 D 中的值不为空,我试图找出一个显示 A、B、C、D 的查询

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

Also, if the value in the C column is lower or equal to 3 I need it to show the values in column E, even if D is empty.此外,如果 C 列中的值小于或等于 3,我需要它来显示列 E 中的值,即使 D 为空。

try:尝试:

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

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM