【问题标题】:I need a formula that returns how many times an unique value appears in a given date我需要一个公式来返回唯一值在给定日期出现的次数
【发布时间】:2012-09-19 14:42:12
【问题描述】:

在 Google 电子表格中的电子表格中,我正在尝试解决这个问题:

17/02/2012  banana
17/02/2012  banana
17/02/2012  banana
17/02/2012  apple
18/02/2012  apple
18/02/2012  apple

我需要一个公式来返回唯一值在给定日期出现的次数。

例子:

17/02/2012 - two unique values 
18/02/2012 - one unique value

有人可以帮忙吗?

【问题讨论】:

  • 这看起来像家庭作业......你已经尝试了什么?

标签: google-sheets google-sheets-formula array-formulas


【解决方案1】:

要做到这一点,你会使用这样的东西:

=ARRAYFORMULA(UNIQUE(B5:C10))

假设您的范围在B5:C10。您可能需要调整范围。

【讨论】:

  • 我试图根据两个标准使用 =countif 但没有成功。这行得通!谢谢
猜你喜欢
  • 1970-01-01
  • 2019-01-07
  • 1970-01-01
  • 2020-01-23
  • 2019-04-29
  • 2023-03-14
  • 1970-01-01
  • 1970-01-01
  • 2017-03-12
相关资源
最近更新 更多