=COUNTIF(A:A,isnumber) cant work

C

crapit

Hi, I want to count the number of cells at col. A that contain number only,
but it didnt work
=COUNTIF(A:A,isnumber)
 
R

Ragdyer

I feel I knew the answer to this at one time, but ... why does your formula,
in a brand new empty sheet, with a virgin Column A, return a value of 1?

You enter a number into A, and it still returns 1.
You enter another number, and it returns 2.
Delete them both, and we're back to 1.
 
P

Peo Sjoblom

Because if no numbers are entered the formula returns

=COUNT(FALSE)

and since FALSE equals zero it counts

=COUNT(0)

which is 1


--
Regards,

Peo Sjoblom

(No private emails please)
 
H

Harlan Grove

Don Guillett said:
I'm glad Peo answered cuz I didn't know either.

Though you gotta wonder why COUNT can convert TRUE/FALSE to 1/0 but
SUMPRODUCT can't.
 

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