문제

I am attempting to create a word frequency counter that will read through cells that contain more than 1 word. For instance, I have over 10,000 rows that all contain sentences and I would like to grab a count of all the cells that contain the word "unhappy." The problem is that I have an entire list of different words that I would like to search for, like:

     A        B
|  Words  | Count |
| unhappy |   1   |
| irate   |   3   | 
| angry   |   4   |

I've written the following:

=COUNTIF(A:A, "*" & "A2" & "*") 

I'm trying to reference the A2 cell and then just autofill the other counts that correspond to the other words in the list. Any ideas?

도움이 되었습니까?

해결책

As I mentioned in comments, you should use A2 without quotes:

=COUNTIF(A:A, "*" & A2 & "*")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top