英文:
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")
英文:
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")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论