COUNTIF

N

nsharpe

COUNTIF seems to require a continuous range of cells to be inserted in the
formula.
I have a series of discontinuous cells from which I wish to count all those
that have the value 1.
COUNTIF((A1,C3,D5),1) for example returns #VALUE#. Using colons as
separators does not work either.
Any suggestions?
 
W

WLMPilot

I tried the formula as a range and it worked. The formula I used was:

=COUNTIF(A1:D5,1)

Hope this helps,
Les
 
V

Vincnet.

Maybe....
Insert/Name/Define
=A1,C3,D5
as RangeTest for example
and then: =COUNTIF(RangeTest,1)
Does it help?
 
C

CLR

Brute force.......

=SUM(COUNTIF(A1,1),COUNTIF(C3,1),COUNTIF(D5,1))

Vaya con Dios,
Chuck, CABGx3
 
J

JE McGimpsey

Vincnet. said:
Maybe....
Insert/Name/Define
=A1,C3,D5
as RangeTest for example
and then: =COUNTIF(RangeTest,1)
Does it help?

Did you try it yourself?
 
Top