简体   繁体   English

Excel 核对字数公式

[英]Excel formula for checking letters and counting the words

In excel I have a list of words and I would like to see if a certain letter exists in these words and if yes, then how many words have this letter?在 excel 我有一个单词列表,我想看看这些单词中是否存在某个字母,如果是,那么这个字母有多少个单词?

Example:例子:

abdications 
abdominally
abecedarian
aberrancies

Result:结果:

A: 4
B: 4
C: 3
D: 3
E: 2
F: 0

and so on.等等。

I have tried the following formula, but it counts the total amount of letters:我尝试了以下公式,但它计算了字母的总数:

=SUMPRODUCT(LEN(Range)-LEN(SUBSTITUTE(Range,Letter,"")))

Result:结果:

A: 9
B: 4
C: 3
D: 3
E: 4
F: 0

Use COUNTIFS:使用 COUNTIFS:

=COUNTIFS(Range,"*"&Letter&"*")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM