Google sheets Google电子表格=查询-忽略单元格为空的实体
我的起始表与下面的类似Google sheets Google电子表格=查询-忽略单元格为空的实体,google-sheets,google-sheets-query,Google Sheets,Google Sheets Query,我的起始表与下面的类似 Person 1, 75 Person 2, 48 Person 3, Person 4, 82 Person 5, Person 6, 93 ... 我现在尝试在下面的查询中包含一个“where”语句,以排除没有数值的实体。这是我目前必须向我展示的上述集合中最低的5个值,到目前为止它仍然有效 =QUERY('DPS Transpose Tables'!D1:E29;"select D, max(E) group by D order by max(E) asc l
Person 1, 75
Person 2, 48
Person 3,
Person 4, 82
Person 5,
Person 6, 93
...
我现在尝试在下面的查询中包含一个“where”语句,以排除没有数值的实体。这是我目前必须向我展示的上述集合中最低的5个值,到目前为止它仍然有效
=QUERY('DPS Transpose Tables'!D1:E29;"select D, max(E) group by D order by max(E) asc limit 5 label max(E) ''";0)
我怎样才能添加这样有效的东西
=QUERY('DPS Transpose Tables'!D1:E29;"select D where (E<>"" OR Is not NULL), max(E) group by D order by max(E) asc limit 5 label max(E) ''";0)
=QUERY('DPS Transpose Tables'!D1:E29;“选择其中的D(E)”或不为NULL),最大值(E)按D分组按最大值(E)排序asc限制5标签最大值(E)”;0
万分感谢 像这样尝试“where E>=0”:
=QUERY('DPS Transpose Tables'!D1:E29,"select D, max(E) where E >=0 group by D order by max(E) asc limit 5 label max(E) ''",0)
您也可以尝试“WHERE不为NULL” 有时,我发现使用>=0不能得到期望的结果
=QUERY('DPS Transpose Tables'!D1:E29,“选择D,max(E),其中E不为空,按D分组,按max(E)排序asc limit 5标签max(E)”,0)
将不等于“”和“”的空字符串与单个“”组合使用
E'嗨@Ed Nelson,太棒了!很好,你救了我一天。谢谢!