Hi, I'm trying to count multiple occurrences of words in a cell.
Essentially, I would like to count the occurrence of the following words: apple, orange, banana, strawberry
so that for the data in the below table I get the following values
I first thought this was a job for the
function, with something like
, but unfortunately, it seems it only counts cells, not occurrences of words within cells.
I would like to count all of the words in my list, not just whether or not any of the words appears in the cell.
Any idea how to accomplish this?
Essentially, I would like to count the occurrence of the following words: apple, orange, banana, strawberry
so that for the data in the below table I get the following values
Data | Count of words | |
apple, orange, tree, butter | 2 | |
banana, orange, strawberry | 3 | |
motorcycle, dog | 0 | |
cat, apple, | 1 | |
grass, banana, orange | 2 |
I first thought this was a job for the
Excel Formula:
COUNTIFS
Excel Formula:
=COUNTIFS(A2,"*apple*",A2,"*orange*",A2,"*strawberry*",A2,"*banana*")
I would like to count all of the words in my list, not just whether or not any of the words appears in the cell.
Any idea how to accomplish this?