Combining COUNTIF and LEN

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to count the number of cells in a range containing moer than 7
characters. =COUNTIF((A2:A200),LEN>7)) does not seem to work. Any help would
be appreciated
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top