4

Is it possible to count specific special characters in a whole column?

I am trying to count all the commas " , " in a column and this is what i am using:

=COUNTIF(D3:D45, "=,")

The problem is that this only counts the commas that are alone in a cell. If i add anything else to the cell, before or after the comma, it will not count.

Examples of the cells that i am counting:

Cell#1: 73(1), 210(5), 422(6),

Cell#2: 862(51),

Cell#3: 26(3), 156(6), 451(19),

The expected output is 7 The actual output is 0

4

1 回答 1

3

你可以试试数组公式:

=SUMPRODUCT(LEN(D3:D45)-LEN(SUBSTITUTE(D3:D45,",","")))
于 2013-09-22T12:07:46.273 回答