Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Excel for Mac > Re: COUNTIF fun...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 288 of 342
Post > Topic >>

Re: COUNTIF function

by tar@[EMAIL PROTECTED] (Thomas A. Russ) Jun 11, 2007 at 12:35 PM

Peter Kirkpatrick <pakirk@[EMAIL PROTECTED]
> writes:

> In article <ymimyzbs4sr.fsf@[EMAIL PROTECTED]
>, Thomas A. Russ
> <tar@[EMAIL PROTECTED]
> wrote:
> 
> > Peter Kirkpatrick <pakirk@[EMAIL PROTECTED]
> writes:
> > 
> > > Is there any way to make COUNTIF look for an occurance of a letter
in a
> > > cell rather than taking the entire cell as the condition? I am
trying
> > > to count the number of cells containing "H"  in a range of cells
> > > containing e.g. LTH, BSH, TBH. I would like to count these cells and
> > > return "3". So far I can only get "0" because none of he cells has H
> > > alone.
> > 
> > Use wildcards:
> > 
> >  =COUNTIF(a:b, "*H*")
> > 
> >   where a:b is your data table.
> 
> Thanks, that solved the problem. Is there a way to count occurrences in
> noncontiguous groups of cells?

Not that I'm aware of.  I don't think you can use a non-contiguous
selection for the first argument to COUNTIF.  Of course, if there aren't
too many regions, you could always combine multiple COUNTIF functions.

If things get a bit more complicated, you might need to look at the
database functions instead, and set up your data as a database.

-- 
Thomas A. Russ,  USC/Information Sciences Institute
 




 5 Posts in Topic:
COUNTIF function
Peter Kirkpatrick <pak  2007-06-07 17:51:14 
Re: COUNTIF function
tar@[EMAIL PROTECTED] (T  2007-06-07 16:50:12 
Re: COUNTIF function
Peter Kirkpatrick <pak  2007-06-08 07:11:38 
Re: COUNTIF function
tar@[EMAIL PROTECTED] (T  2007-06-11 12:35:57 
Re: COUNTIF function
Peter Kirkpatrick <pak  2007-06-09 14:08:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 11:29:11 CDT 2008.