#1   Report Post  
Carl
 
Posts: n/a
Default Counting question

I have a range of cells that I want to 'count' if the number is greater than
0 but less than 6. The cell # is F33 where I want the answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting error
answers.
  #2   Report Post  
 
Posts: n/a
Default

hi,
=count(Q13:W13,Q17:W17,Q21:W17,Q25:W25,Q29:W29)

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep

getting error
answers.
.

  #3   Report Post  
Carl
 
Posts: n/a
Default

It didn't work. It totaled 35 (total number of cells) and not the number of
numbers above 0 but below 6.


" wrote:

hi,
=count(Q13:W13,Q17:W17,Q21:W17,Q25:W25,Q29:W29)

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep

getting error
answers.
.


  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Kind of long, but this will work:

=-SUM(-COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:V25,Q29:W29),COUNTIF( Q13:W13,
{"<=0","=6"}),COUNTIF(Q17:W17,{"<=0","=6"}),COUN TIF
(Q21:W21,{"<=0","=6"}),COUNTIF(Q25:W25,
{"<=0","=6"}),COUNTIF(Q29:W29,{"<=0","=6"}))

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep

getting error
answers.
.

  #5   Report Post  
Jason Morin
 
Posts: n/a
Default

Careful. I have Q25:V25 in the 1st part of my formula
(?). Change that to:

Q25:W25

Jason

-----Original Message-----
Kind of long, but this will work:

=-SUM(-COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:V25,Q29:W29),COUNT IF

(Q13:W13,
{"<=0","=6"}),COUNTIF(Q17:W17,{"<=0","=6"}),COU NTIF
(Q21:W21,{"<=0","=6"}),COUNTIF(Q25:W25,
{"<=0","=6"}),COUNTIF(Q29:W29,{"<=0","=6"}))

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I

keep
getting error
answers.
.

.



  #6   Report Post  
Jason Morin
 
Posts: n/a
Default

A little shorter than my 1st formula:

=SUM(-COUNTIF(INDIRECT("Q"&{13,17,21,25,29}&":"&"W"&
{13,17,21,25,29}),{"<=0";"=6"}),COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:W25,Q29:W29))

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep

getting error
answers.
.

  #7   Report Post  
Domenic
 
Posts: n/a
Default

Another way...

=SUMPRODUCT(--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29
)0),--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29)<6))

Hope this helps!

In article ,
"Carl" wrote:

I have a range of cells that I want to 'count' if the number is greater than
0 but less than 6. The cell # is F33 where I want the answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting error
answers.

  #8   Report Post  
Carl
 
Posts: n/a
Default

I tried this formula and got an error message.





"Jason Morin" wrote:

A little shorter than my 1st formula:

=SUM(-COUNTIF(INDIRECT("Q"&{13,17,21,25,29}&":"&"W"&
{13,17,21,25,29}),{"<=0";"=6"}),COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:W25,Q29:W29))

HTH
Jason
Atlanta, GA

-----Original Message-----
I have a range of cells that I want to 'count' if the

number is greater than
0 but less than 6. The cell # is F33 where I want the

answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep

getting error
answers.
.


  #9   Report Post  
Carl
 
Posts: n/a
Default

I tried this and got an error message.

"Domenic" wrote:

Another way...

=SUMPRODUCT(--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29
)0),--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29)<6))

Hope this helps!

In article ,
"Carl" wrote:

I have a range of cells that I want to 'count' if the number is greater than
0 but less than 6. The cell # is F33 where I want the answer. The range is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting error
answers.


  #10   Report Post  
Domenic
 
Posts: n/a
Default

Can you post the exact formula you're using?

In article ,
"Carl" wrote:

I tried this and got an error message.

"Domenic" wrote:

Another way...

=SUMPRODUCT(--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29
)0),--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29)<6))

Hope this helps!

In article ,
"Carl" wrote:

I have a range of cells that I want to 'count' if the number is greater
than
0 but less than 6. The cell # is F33 where I want the answer. The range
is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting error
answers.




  #11   Report Post  
Carl
 
Posts: n/a
Default

I tried both formulas that Jason gave me and the one you gave me.

=-SUM(-COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:V25,Q29:W29),COUNTIF( Q13:W13,
{"<=0","=6"}),COUNTIF(Q17:W17,{"<=0","=6"}),COUN TIF
(Q21:W21,{"<=0","=6"}),COUNTIF(Q25:W25,
{"<=0","=6"}),COUNTIF(Q29:W29,{"<=0","=6"}))


"Domenic" wrote:

Can you post the exact formula you're using?

In article ,
"Carl" wrote:

I tried this and got an error message.

"Domenic" wrote:

Another way...

=SUMPRODUCT(--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29
)0),--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29)<6))

Hope this helps!

In article ,
"Carl" wrote:

I have a range of cells that I want to 'count' if the number is greater
than
0 but less than 6. The cell # is F33 where I want the answer. The range
is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting error
answers.


  #12   Report Post  
Domenic
 
Posts: n/a
Default

If you copied and pasted the formula from the newsgroup and into your
spreadsheet, extra spaces and hard returns may have been added/included
in the formula. If so, this would give you your error message. In this
case, correct the formula accordingly.

Does this help?

In article ,
"Carl" wrote:

I tried both formulas that Jason gave me and the one you gave me.

=-SUM(-COUNT
(Q13:W13,Q17:W17,Q21:W21,Q25:V25,Q29:W29),COUNTIF( Q13:W13,
{"<=0","=6"}),COUNTIF(Q17:W17,{"<=0","=6"}),COUN TIF
(Q21:W21,{"<=0","=6"}),COUNTIF(Q25:W25,
{"<=0","=6"}),COUNTIF(Q29:W29,{"<=0","=6"}))


"Domenic" wrote:

Can you post the exact formula you're using?

In article ,
"Carl" wrote:

I tried this and got an error message.

"Domenic" wrote:

Another way...

=SUMPRODUCT(--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W2
9
)0),--(CHOOSE({1;2;3;4;5},Q13:W13,Q17:W17,Q21:W21,Q25:W2 5,Q29:W29)<6))

Hope this helps!

In article ,
"Carl" wrote:

I have a range of cells that I want to 'count' if the number is
greater
than
0 but less than 6. The cell # is F33 where I want the answer. The
range
is:
Q13:W13; Q17:W17; Q21:W17; Q25:W25; & Q29:W29.

What formula would I use? I've tried several but I keep getting
error
answers.


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
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM
Counting data - 1 last question Jo New Users to Excel 1 February 5th 05 11:42 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
Counting question sjs Excel Discussion (Misc queries) 5 December 2nd 04 09:24 AM
Counting values Jouni Excel Worksheet Functions 2 November 18th 04 12:24 PM


All times are GMT +1. The time now is 03:19 PM.

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"