counting no of "text" cells

  • Thread starter Thread starter Silvabod
  • Start date Start date
S

Silvabod

Apols, I've tried a number of things but cannot find the answer, all refer
to numeric values, which this isn't.

Have a column of 70 text cells (I've range-named it "names")

I need to count the number of names, not at the bottom of the column, in a
different location..
Some cells are blank, (actually "0", with the "0" hidden). End use is as a
dynamic (changing) number in a calculation.
What I'm getting (on 58 names) is 12 (which is the number of "0" or blank
cells).

Function to count the number of cells with text, please?
 
Thanks, Dave, option 1 worked!
Appreciate the "help" links, I lost all mine when I gave my old pc to my
daughter (far away)
Saved the OE wab and message files, forgot the ng files!!

Retired, only an occasional Excel user now - this bit of code completes a
comprehensive "Lotto" s/sht for my "local"!
Looks simple (just a report list of names and numbers) but there's about
2000 bits of code/condtional formatting in it!
If you want it (for your local) I'll give it to you, warts and all (all code
works).
 
Dave Peterson wrote...
=SUMPRODUCT(--(ISTEXT(names)))
or
=SUMPRODUCT(--(ISTEXT(D5:D74)))
....

FTHOI, it can be done with a single function call.

=COUNTIF(D5:D74,"*")
 

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