Discussion Locked

Excel: count cells in which text appears

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have two columns of data. The second column has various text strings, and I want to count the number of cells in which a certain text appears. Some cells may contain "Yes, I'll attend," or "Yes, I'll be there," and I want to count how many cells have the word "Yes" in them. COUNT and COUNTIF look for precise matches. Is there any way I can count based on a partial match?

3 replies

by mbarker734

COUNTIF(A1:A5, "*Yes*")

The above will provide you with all the combinations of yes in the range. Careful though as Yesterday will be counted as well.

Good luck,

Mark

This discussion is closed to new replies.