how to count the number of times a word appear in a sentence in a column

jennxf

New Member
Joined
Jul 12, 2013
Messages
19
AB
1video not working
2youtube video
3hello
4yes

<tbody>
</tbody>

I have a table where col B is all text. How do i count the number of rows that contain the word "video"?

countif(B1:B4, "*video*") doesnt work.

Thanks,
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
=COUNTIF(B1:B4,"*video*") should work, nothing wrong with formula
 
Upvote 0
Hi

Not clear to me.

Can you clarify?

1 - can the word video appear more than once in a cell, like "video 1 is working video 2 is not working"?
What do you want to do in that case?

2 - can the word video appear as part of another word, like videogame, videocard?
What do you want to do in that case?
Could we assume the word separator is always the space character like in your examples, or can there also be others (which others)?
 
Upvote 0
Hi

Not clear to me.

Can you clarify?

1 - can the word video appear more than once in a cell, like "video 1 is working video 2 is not working"?
What do you want to do in that case?

2 - can the word video appear as part of another word, like videogame, videocard?
What do you want to do in that case?
Could we assume the word separator is always the space character like in your examples, or can there also be others (which others)?

sometimes 1 will occur. I will take that cell as 1 count of the word video instead of 2.
video may also be part of another word but in my data set it is very rare. i can ignore it.
 
Upvote 0
countif(B1:B4, "*video*") doesnt work.
When you say it doesn't work, what does it return for that sample data?
I agree with azumi that the formula looks fine, and here it is working for me.

Edit: I suppose one thing could be if you are using a different language version of Excel and it requires a semicolon separator.
=COUNTIF(B1:B4; "*video*")

Excel Workbook
BC
1video not working2
2youtube video
3hello
4yes
COUNTIF
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,767
Messages
6,126,773
Members
449,336
Latest member
p17tootie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top