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 | |||
Wrap Text Across Columns & Rows | Excel Discussion (Misc queries) | |||
Duplicate Range Names by worksheet | Excel Discussion (Misc queries) | |||
Help with using range names in sum function | Excel Worksheet Functions | |||
Array to named range conversion... | Excel Discussion (Misc queries) | |||
How to Select a relative range with Using "Find" and Offset() | Excel Discussion (Misc queries) |