![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
ok anyone know how to count the number of instances the word "January" appears in the cell range B12:B80?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
|
=COUNTIF(B12:B80,"January")
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 10
|
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 =) |
|
|
|
|
|
#4 | |
|
Guest
Posts: n/a
|
Quote:
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
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.
|
|
|
|
#6 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
{"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. |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|