#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default count blank

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default count blank

=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 he
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
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default count blank

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" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default count blank

On Fri, 7 Sep 2007 14:22:49 -0400, "T. Valko"
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula: count if not blank cdaniels Excel Worksheet Functions 1 November 16th 06 08:33 PM
Count Non-Blank Rows Lazzaroni Excel Worksheet Functions 12 April 28th 06 07:18 PM
Count Names in One Col if 2nd Col Isn't Blank jeffc Excel Worksheet Functions 9 April 13th 06 07:14 PM
Count if not blank... Paul (ESI) Excel Discussion (Misc queries) 4 October 14th 05 01:48 PM
Count Non Blank in column Diane Alsing Excel Discussion (Misc queries) 3 September 16th 05 03:12 AM


All times are GMT +1. The time now is 07:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"