【问题标题】:formula in google sheet to count number of different objects?谷歌表中的公式来计算不同对象的数量?
【发布时间】:2021-04-04 16:51:00
【问题描述】:

我有一个 Google 电子表格,其中有一列如下所示:

每个单元格都是包含 Fruits = [Apple,Orange,Pineapple,Papaya,Cherry,Strawberry] 的下拉列表

S.NO |水果

  1. Apple
    
  2. Orange
    
  3. Pineapple
    
  4. Papaya
    
  5. Cherry
    
  6. Strawberry
    
  7. Apple
    
  8. Orange
    
  9. Cherry
    

我想数一数水果有多少种。 (谷歌表格公式)

  • Apple、Orange 和 Cherry 出现两次。

  • 列中有6种不同类型的水果。

我该怎么做?

【问题讨论】:

    标签: google-sheets count


    【解决方案1】:

    如果我理解正确并假设水果在 A2:A10 范围内,你应该可以使用

    =countunique(A2:A10)
    

    更改范围以适合,看看是否有帮助?


    参考

    【讨论】:

      【解决方案2】:

      使用:

      =INDEX(COUNTUNIQUE(LOWER(A1:A)))
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-05-30
        • 2020-12-08
        • 2016-11-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多