Not Counting cells that have a formula with ""

S

Steve

I have a column of cells with a formulas that have
=If(c4 >0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

Thanks,

Steve
 
H

Harlan Grove

Steve said:
I have a column of cells with a formulas that have
=If(c4 >0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

The 'blank' cells? Do you mean the NONblank cells?

=COUNTIF(range,"?*")

to count only text strings, or

=COUNTIF(range,"?*")+COUNT(range)

to count nonblank text strings and numbers, or

=ROWS(range)*COLUMNS(range)-COUNTBLANK(range)

to count nonblank cells evaluating to anything other than "".
 
T

T. Valko

This will count all *TEXT* entries in the range and will *exclude* cells
that contain formula blanks:

=COUNTIF(B:B,"?*")
 
S

Steve

Wow ! That was fast, and it worked great.
One more: same situation in a differnt range, with formulas in the cells,
producing either test, or various other text. How do I count the # of cells
that do not have test in them ?

Thanks agai,

Steve
 

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