CountIFS和ImportRange

时间:2019-12-09 07:44:09

标签: excel excel-formula

我正在尝试从另一个Excel导入数据并在2个不同列的条件下对数据进行计数:

第一个条件:

=COUNTIFS(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1suV8EPH4HtwAEuBX6XpQ3dLsUrFHasgMHFVFJRR4j6M/edit#gid=168725841","Flow!K6:K3000"),B6,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1suV8EPH4HtwAEuBX6XpQ3dLsUrFHasgMHFVFJRR4j6M/edit#gid=168725841","Flow!F6:F3000"),"=Complete")

我想用

计算行数
Flow!K6:K3000 = B6 (a string) and Flow!F6:F3000 "=Complete"

输出始终为0。

1 个答案:

答案 0 :(得分:0)

没有必要在公式中添加“ =”。您可以尝试以下方法。

  

= COUNTIFS(IMPORTRANGE(“ https://docs.google.com/spreadsheets/d/1suV8EPH4HtwAEuBX6XpQ3dLsUrFHasgMHFVFJRR4j6M/edit#gid=168725841”,“ Flow!K6:K3000”),B6,IMPORTRANGE(“ https://docs.google.com/spreadsheets/d/1suV8EPH4HtwAEuBX6XpQ3dLsUrFHasgMHFVFJRR4j6M/edit#gid=168725841”,“ Flow!F6:F3000”),“ Complete”)