ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Finding text (https://www.excelbanter.com/excel-worksheet-functions/193199-finding-text.html)

Meebers

Finding text
 
If I have text in a cell = "I love Excel", I want to find and count the
number of times "Excel" appears in a range. CountIF seems to want all
words. TIA



Jarek Kujawa[_2_]

Finding text
 
=SUM(IF(FIND("Excel",A1:A100,1),1,0))

array-enter it = CTRL+SHIFT+ENTER

Teethless mama

Finding text
 
Your formula returns #VALUE! error
=SUM(IF(FIND("Excel",A1:A100,1),1,0))


Try like this:

=SUM(IF(ISNUMBER(SEARCH("Excel",A1:A100)),1))
ctrl+shift+enter, not just enter

or
=COUNTIF(A:A,"*Excel*")


"Jarek Kujawa" wrote:

=SUM(IF(FIND("Excel",A1:A100,1),1,0))

array-enter it = CTRL+SHIFT+ENTER


Meebers

Finding text
 
Great...seems that =COUNTIF(A:A,"*Excel*") works ok and is a smaller
formula. I see that the "*" must specify a wildcard, thats where my error
was. Tx....

"Teethless mama" wrote in message
...
Your formula returns #VALUE! error
=SUM(IF(FIND("Excel",A1:A100,1),1,0))


Try like this:

=SUM(IF(ISNUMBER(SEARCH("Excel",A1:A100)),1))
ctrl+shift+enter, not just enter

or
=COUNTIF(A:A,"*Excel*")


"Jarek Kujawa" wrote:

=SUM(IF(FIND("Excel",A1:A100,1),1,0))

array-enter it = CTRL+SHIFT+ENTER




Jarek Kujawa[_2_]

Finding text
 
yep, sorry


All times are GMT +1. The time now is 12:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com