ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif question (https://www.excelbanter.com/excel-worksheet-functions/23223-countif-question.html)

Tuc

countif question
 
Hi,

I'm struggling with an issue that might be easy for someone else. I need to
count all the rows where column A has the number 11 and column B contains a
word, let's say the word 'hockey'. Column B is a text column that will have
multiple words in it, so I need to search for 'hockey' using wildcards, i.e.
'*hockey*'. Any thoughts?
Thanks!

Tuc

Hi all, I finally found the solution. Thanks to past postings! Here is the
solution that worked for me.

=SUMPRODUCT((A1:A188=11)*(ISNUMBER(SEARCH("hockey" ,B1:B188))))

"Tuc" wrote:

Hi,

I'm struggling with an issue that might be easy for someone else. I need to
count all the rows where column A has the number 11 and column B contains a
word, let's say the word 'hockey'. Column B is a text column that will have
multiple words in it, so I need to search for 'hockey' using wildcards, i.e.
'*hockey*'. Any thoughts?
Thanks!



All times are GMT +1. The time now is 05:26 AM.

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