Counting instances of the word "January" in cells B12:B80

~§-/¥\-Ê-K~

New Member
Joined
Feb 18, 2002
Messages
10
ok anyone know how to count the number of instances the word "January" appears in the cell range B12:B80?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Works great, thx =)

wow, i've posted two things on this board now, both times i got the corrrect reply within 10 mins or so =)
 
Upvote 0
On 2002-02-19 10:36, Paul B wrote:
=COUNTIF(B12:B80,"January")

what if the cell only contains the word january in the middle of the text e.g "one january morning" and you want to count the number of occurances of cells containing the word january?
 
Upvote 0
answered it my self. A classic example of ask the question before engaging brain *january* - the power of widcards (note as i type it is 3pm on a friday, not classic thinking time.
 
Upvote 0
On 2002-02-28 17:35, Anonymous wrote:
On 2002-02-19 10:36, Paul B wrote:
=COUNTIF(B12:B80,"January")

what if the cell only contains the word january in the middle of the text e.g "one january morning" and you want to count the number of occurances of cells containing the word january?

Given

{"Texas";
"January";
"Jan";
"One January morning";
"January blues in January"}

in A1:A5 and

{"January"}

in B1,


[1] in C1 enter:

=IF(LEN(B1),COUNTIF(A1:A5,"*"&B1&"*"),"")

[2] in C2 enter:

=SUMPRODUCT((LEN(A1:A5)-LEN(SUBSTITUTE(LOWER(A1:A5),LOWER(B1),"")))/MAX(1,LEN(B1)))

Added [2], in case you'd want to ask for that too.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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