Count if?

S

susanquinn

Does anyone know how to write a function that will count how many cells
in a certain range have text in them? Not a CERTAIN text, but ANY text.
 
D

duane

how about counta(range) - countif(range,">0") to count # of cells with
nonnumeric entries?
 
B

Biff

When you say "text", do you mean TEXT and not numeric
values? Or, does "text" mean "anything"?

For TEXT only:

=SUMPRODUCT(--(ISTEXT(A1:A7)),--(A1:A7<>""))

Biff
 
T

Tom Ogilvy

Assuming they will only contain text or numbers or be blank:
=CountA(A1:A10)-Count(A1:A10)

if they could have errors then it would be more complex.
 
S

susanquinn

Thank you all!

=COUNTIF(A1:A1000,"*") works in my spreadsheet as doe
=CountA(A1:A10)-Count(A1:A10) - although I didn't have to do th
-Count(A1:A10) portion as the only thing I would ever have in this lis
is students' names
 

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

Top