【问题标题】:How to use Countif function to count rows that has a specific value in either of column A or B in Google sheet?如何使用 Countif 函数计算 Google 工作表中 A 列或 B 列中具有特定值的行数?
【发布时间】:2022-01-01 10:22:47
【问题描述】:

我正在尝试计算 C 列或 D 列中具有特定值的行数,比如“John”。如果两列的值相同,则只计算其中一个。

这是示例表。 C & D 列有数据。 G列包含函数countif

https://docs.google.com/spreadsheets/d/1i9I2bhtlHAMWqVqdE7hbkgLRLCCUrfnOMSQcf9Gj4_0/edit#gid=0

【问题讨论】:

    标签: google-sheets countif


    【解决方案1】:

    试试:

    =ArrayFormula(COUNTIF(C5:D12,F5:F7)-COUNTIFS(C5:C12,F5:F7,D5:D12,F5:F7))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-20
      • 1970-01-01
      • 2020-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多