Excel函数在一列中搜索一串字母

Excel function to search for a string of letters in a column

我有一列包含单词 "Google" 和 "Google.com" 的单元格。 如果我使用公式 =COUNTIF(B1:B940,"Google") 搜索关键字 "Google",则不会计算 "Google.com"。我可以使用哪个公式来计算两者。

您可以在搜索字词中使用通配符 *,例如 "Google*":

如果您知道通配符的长度,也可以使用 ? 等其他通配符。

好吧,对于您的具体案例,最好只做:

=COUNTIF(B1:B940,"Google")+COUNTIF(B1:B940,"Google.com")

对于更复杂的内容,countif 允许使用通配符:

=COUNTIF(B1:B940,"Google*")

但这可能会包含您不感兴趣的内容,例如 Google ate my homework