Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
what's a function I can use in VB to count the
number of times a particular string occurs in a named range of cells? |
#2
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Application.Countif(Range("myRange"),"string")
as an example -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Peter Morris" <nospam.ple@se wrote in message . uk... what's a function I can use in VB to count the number of times a particular string occurs in a named range of cells? |
#3
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Bob Phillips" wrote in message ... Application.Countif(Range("myRange"),"string") as an example -- HTH That works. also, is it possible to use wildcards in the search string? Or to count the number of cells in the range with ANY text in? |
#4
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Application.Countif(Range("myRange"),"*string*)
Application.CountA(range("MyRange")) -- Regards, Tom Ogilvy "Peter Morris" <nospam.ple@se wrote in message . uk... "Bob Phillips" wrote in message ... Application.Countif(Range("myRange"),"string") as an example -- HTH That works. also, is it possible to use wildcards in the search string? Or to count the number of cells in the range with ANY text in? |
#5
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Tom Ogilvy" wrote in message ... Application.Countif(Range("myRange"),"*string*) Application.CountA(range("MyRange")) -- Regards, Tom Ogilvy Brilliant, much gratitude to both of you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Detect strings in a range | Excel Worksheet Functions | |||
strings in a range | Excel Worksheet Functions | |||
Range.Value2 is failing for lenghty strings | Excel Programming | |||
Only allow specified strings in a range | Excel Programming | |||
Concatenate a strings range. | Excel Programming |