0

I have a need to count cells with a particular string of text. I have a list of each string of text to be counted.

I am forming a query using CountIf in the form:

=COUNTIF(C1:C4929,"String")

where every occurrence of 'String' is counted and output.

I would like to show the counts for each string of text in a column alongside the String. I have created a column with one string per cell.

What I would love to be able to do is call the string in the cell into the CountIf function, sort of like:

=COUNTIF(C1:C4929, "Whatever's in the column to the left of this output cell")

But I can't work it out. Am looking and will update here IMMEDIATELY if I work it out.

EDIT:
DONE!

=COUNTIF(C1:C4929,INDIRECT("RC[-1]",0))
4

1 回答 1

1

请尝试=COUNTIF(C1:C4929,"="&D1)从 E1 复制下来,其中 ColumnD 包含您的字符串。

于 2013-10-10T15:03:44.737 回答