【问题标题】:Google Sheets: QUERY to return a single columnGoogle 表格:查询以返回单列
【发布时间】:2021-10-01 22:05:24
【问题描述】:

我正在使用此查询在我的数据列中查找最受欢迎的条目 - 如何将查询结果限制为仅数据条目,而不返回聚合列:

=QUERY(G2:G14,"select G, count(G) where G is not null group by G order by count(G) DESC label G 'Product'",-1)

【问题讨论】:

    标签: google-sheets indexing google-query-language


    【解决方案1】:

    尝试:

    =INDEX(QUERY(G2:G14,
     "select G, count(G) 
      where G is not null
      group by G
      order by count(G) desc 
      label G 'Product'", -1),, 1)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-18
      • 1970-01-01
      相关资源
      最近更新 更多