How to count how many rows with some value are a column?

时间:2018-02-03 10:17:47

标签: excel excel-formula libreoffice-calc

I am interested in Libre Office Calc, but it's perhaps similar or even identical as in Excel.

So, let's say I want to know how many cells in the column A have something in them.

How to count how many rows with some value are in the column A?

And I would like to display the result (number of cells/rows with somthing in them) in a B1 cell.

Any idea how to do it?

2 个答案:

答案 0 :(得分:1)

Try,

=countif(a:a, "something")

答案 1 :(得分:0)

计数是要走的路,有几个版本,

=countif(a:a,"value to count")

将你想要的数字放在""除非是数字,否则不要使用""

=counta(a:a)

会计算任何内容(包括文字和数字)

=count(a:a)

只计算数字