有没有一种Excel公式可以计算表格中特定数值的行数?

huangapple go评论139阅读模式
英文:

is there an excel formula to count rows in a table with a specific value?

问题

我使用rows()命令来计算表中的行数,但如何计算表中特定值的行数,例如包含文本“Apple”的列“Fruit”中的行数?

英文:

I am using the rows() command to count the number of rows in a table but how would I count the number of rows in a table with a specific value e.g. the number of rows where the column Fruit contained the text Apple?

答案1

得分: 0

你可以使用 COUNTIF 函数来完成这个任务,在下面的示例中,我使用它来计算表格列名为 "Fruit" 的列中单词 "Apple" 出现的次数,示例中的公式如下:

=COUNTIF(Table1[Fruit];"Apple")

有没有一种Excel公式可以计算表格中特定数值的行数?

英文:

You could use the COUNTIF function to do that, in the example below I use it to count the number of times the word "Apple" exists in the table column named "Fruit", in my example the formula ends up as:

=COUNTIF(Table1[Fruit];"Apple")

有没有一种Excel公式可以计算表格中特定数值的行数?

huangapple
  • 本文由 发表于 2023年3月3日 19:50:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75626724.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定