View Single Post
  #2   Report Post  
Domenic
 
Posts: n/a
Default

If, for example, you want to count the number of 'bg's in your range of
cells, try...

=COUNTIF(A1:A100,"*bg*")

or

=COUNTIF(A1:A100,"*"&B1&"*")

....where B1 contains your criterion, such as 'bg'.

Hope this helps!

In article ,
Jeff Cantwell wrote:

Thank you in advance for all replies.

I have a column in a worksheet which contains a series of 2 character
codes separated by commas:

ac, bg, hj, r4, qt, mr
ac,mr,t7
mr,e3,bg

search will return a value for starting position in each cell, and
countif will return a count, but mixing the two together escapes me.

Sure there's a way. (SQL is sooooo much easier.)


Jeff N. Cantwell
Downtown Little Rock

NRA, ARPA, Libertarian
'86, '91 300zx 2+2