In my worksheet I have a lot of cells filled with different data, but some of them have similar values in it. How can I count the cells with particular text?
In my worksheet I have a lot of cells filled with different data, but some of them have similar values in it. How can I count the cells with particular text?
Jayden
If you had data in cells A1:A6 say and were looking for "word", you use COUNTIF and put the * wildcard either side of that criteria, so
=COUNTIF(A1:A6,"*word*")
would return a count for word anywhere in a cell (note that COUNTIF is case insensitive so would count if the cell included WoRD e.g.)
In my example above, it would count also a cell containing "foreword" too, but you could put a space after the first wildcard like this:
=COUNTIF(A1:A6,"* word*")
to count only cells with "word".
To get only cells ending in " word",use:
=COUNTIF(A1:A6,"* word")
.
Hope you can use this.