【问题标题】:Google Spreadsheet: Dividing unique count result by twoGoogle电子表格:将唯一计数结果除以二
【发布时间】:2018-08-02 03:11:05
【问题描述】:

我正在使用以下公式:

=ArrayFormula(QUERY(C3:C37&{"",""},"select Col1, count(Col2) where Col1 != '' group by Col1 label count(Col2) 'Count'",1)) 

在 Google 表格上返回新列的单元格范围内的唯一值以及右侧列中每个唯一值的出现次数。

我现在想将返回的值除以 2,我尝试了几种解决方案,但它们似乎都不起作用,您能帮帮我吗?

谢谢!

【问题讨论】:

  • count(Col2)/2
  • 感谢您的建议,遗憾的是它不起作用,即使我尝试将其括在括号中。

标签: arrays google-sheets spreadsheet


【解决方案1】:

您必须更改标签部分以及选择部分

=ArrayFormula(QUERY(C4:C37&{"",""},"select Col1, count(Col2)/2 where Col1 != '' group by Col1 label count(Col2)/2 'Count'",1))

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-09
    • 2020-07-16
    • 2015-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多