PC Review


Reply
 
 
John in Wembley
Guest
Posts: n/a
 
      7th Sep 2007
hi team

counta & countblank only works if the cell is cleared with 'clear
contents'. Rather then educate all the staff can I do something else?
The other issue is these cells are linked to another sheet.
how about count all the cells with strings between 4 & 10 in lenth as
the cells will contain patients names - thats what I wish to count.

how can I count cells based on them containing a text string of say
between 4 and 10 letters in lenght?

cheers

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th Sep 2007
=SUMPRODUCT(--(LEN(A1:A10)>=4),--(LEN(A1:A10)<=10))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

John in Wembley wrote:
>
> hi team
>
> counta & countblank only works if the cell is cleared with 'clear
> contents'. Rather then educate all the staff can I do something else?
> The other issue is these cells are linked to another sheet.
> how about count all the cells with strings between 4 & 10 in lenth as
> the cells will contain patients names - thats what I wish to count.
>
> how can I count cells based on them containing a text string of say
> between 4 and 10 letters in lenght?
>
> cheers


--

Dave Peterson
 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      7th Sep 2007
> between 4 and 10 letters in lenght?

I assume that's inclusive?

Try this:

=SUMPRODUCT(--(LEN(A1:A10)>=4),--(LEN(A1:A10)<=10))

That counts *all* characters.

--
Biff
Microsoft Excel MVP


"John in Wembley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi team
>
> counta & countblank only works if the cell is cleared with 'clear
> contents'. Rather then educate all the staff can I do something else?
> The other issue is these cells are linked to another sheet.
> how about count all the cells with strings between 4 & 10 in lenth as
> the cells will contain patients names - thats what I wish to count.
>
> how can I count cells based on them containing a text string of say
> between 4 and 10 letters in lenght?
>
> cheers
>



 
Reply With Quote
 
John in Wembley
Guest
Posts: n/a
 
      7th Sep 2007
On Fri, 7 Sep 2007 14:22:49 -0400, "T. Valko" <(E-Mail Removed)>
wrote:

>> between 4 and 10 letters in lenght?

>
>I assume that's inclusive?
>
>Try this:
>
>=SUMPRODUCT(--(LEN(A1:A10)>=4),--(LEN(A1:A10)<=10))
>
>That counts *all* characters.


Thank to the team
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to count#cells w/= value in other column and not count blank c aganoe Microsoft Excel Worksheet Functions 4 9th Apr 2010 11:36 AM
Count from Blank & Non-Blank Cells Mandeep Dhami Microsoft Excel Misc 2 12th Feb 2008 03:25 PM
RE: Count from Blank & Non-Blank Cells Stefi Microsoft Excel Misc 1 12th Feb 2008 08:27 AM
Change Line Count to not count blank lines =?Utf-8?B?Q2Fyb2w=?= Microsoft Word Document Management 4 27th Nov 2004 01:46 PM
Count blank cells until a non-blank cell is reached tim Microsoft Excel Worksheet Functions 9 7th Jul 2004 06:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:10 AM.