Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Guido Cole
 
Posts: n/a
Default Combining COUNTIF and LEN

I need to count the number of cells in a range containing moer than 7
characters. =COUNTIF((A2:A200),LEN7)) does not seem to work. Any help would
be appreciated
--
Guido
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(LEN(A2:A200)7))

For an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"Guido Cole" wrote:

I need to count the number of cells in a range containing moer than 7
characters. =COUNTIF((A2:A200),LEN7)) does not seem to work. Any help would
be appreciated

  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

JE McGimpsey wrote...
One way:

=SUMPRODUCT(--(LEN(A2:A200)7))

....

And another,

=COUNTIF(A2:A200,REPT("?",7)&"?*") or =COUNTIF(A2:A200,"????????*")

though this would only count cells containing text. FWIW, cells
containing numbers with nonterminating decimal fractions always have
length exceeding 7.

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



All times are GMT +1. The time now is 07:19 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"