#1   Report Post  
nsharpe
 
Posts: n/a
Default COUNTIF

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?

  #2   Report Post  
WLMPilot
 
Posts: n/a
Default

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

=COUNTIF(A1:D5,1)

Hope this helps,
Les



"nsharpe" wrote:

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?

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=(A1=1)+(C3=1)+(D5=1)




In article ,
"nsharpe" wrote:

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?

  #4   Report Post  
Vincnet.
 
Posts: n/a
Default

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

V.


"nsharpe" wrote:

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?

  #5   Report Post  
CLR
 
Posts: n/a
Default

Brute force.......

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

Vaya con Dios,
Chuck, CABGx3



"nsharpe" wrote:

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?



  #6   Report Post  
Vincnet.
 
Posts: n/a
Default

forget it....
--
A+

V.


"Vincnet." wrote:

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

V.


"nsharpe" wrote:

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?

  #7   Report Post  
JE McGimpsey
 
Posts: n/a
Default

In article ,
"Vincnet." wrote:

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


Did you try it yourself?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF COMBINATION?? Heather Excel Worksheet Functions 1 April 26th 05 02:44 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 01:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"