How do i countif this one?

Cossie

Active Member
Joined
May 6, 2002
Messages
328
I need to count the number of times a word appears in a series of cells.

I currently use =COUNTIF($B$2:$B$5,"*drama*") but have to change "drama" everytime to something else like "english". Is there an easir way to do this? Have pasted an example below and. Thanks you :biggrin:
Book2
ABCD
2Drama/English/LOTE/Library/Maths/Music/TAS/IndividualpreparationtimeHSIE/LearningSupport/PDHPE/Science/VisArts/Individualpreparationtime
3Drama/English/LOTE/Library/Maths/Music/TAS/IndividualpreparationtimeHSIE/LearningSupport/PDHPE/Science/VisArts/Individualpreparationtime
4Drama/English/LOTE/Library/Maths/Music/TAS/IndividualpreparationtimeHSIE/LearningSupport/PDHPE/Science/VisArts/Individualpreparationtime
5Drama/English/LOTE/Library/Maths/Music/TAS/IndividualpreparationtimeHSIE/LearningSupport/PDHPE/Science/VisArts/Individualpreparationtime
6
7Drama04
Sheet1
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Change it to:
=COUNTIF($A$2:$A$5,"*"&A7&"*")

Then every time you change A7, it will update.
 
Upvote 0
Try this:

=COUNTIF($B$2:$B$5,"*"&D1&"*")

Where D1 contains the word you want to count (e.g. "Drama"). Hope that helps!

P.S. The FAQ for the HTML Maker add-in has intructions for use, so that you won't see "" all over when you post a sheet.
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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