Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default WHICH COUNT FUNCTION?

Hello and thank you for looking at my problem. I have a column of
numbers say 1 to 100 (A:1 to A:100) and I want to count the number of
cells in that range that are between 30 and 50 and including 30 and 50
(count should be 21). I've tried most count functions but can't seem to
come up with the right formula. Can someone please help. Thanks John
:)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default WHICH COUNT FUNCTION?

=SUMPRODUCT((A1:A100=30)*(A1:A100<=50))

Tyro

"Johnny1r" wrote in message
...
Hello and thank you for looking at my problem. I have a column of
numbers say 1 to 100 (A:1 to A:100) and I want to count the number of
cells in that range that are between 30 and 50 and including 30 and 50
(count should be 21). I've tried most count functions but can't seem to
come up with the right formula. Can someone please help. Thanks John
:)




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default WHICH COUNT FUNCTION?

Thank you , it works great. John :)


Tyro wrote:

=SUMPRODUCT((A1:A100=30)*(A1:A100<=50))


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default WHICH COUNT FUNCTION?

Use to COUNTIFs...

=COUNTIF(A1:A100,"<=50")-COUNTIF(A1:A100,"<30")

Notice the logical operators... the one in front of the 50 has the equal
sign because we want to count the 50, the second one omits the equal sign
because it is what is being subtracted and we do not want to subtract the
30.

Rick


"Johnny1r" wrote in message
...
Hello and thank you for looking at my problem. I have a column of
numbers say 1 to 100 (A:1 to A:100) and I want to count the number of
cells in that range that are between 30 and 50 and including 30 and 50
(count should be 21). I've tried most count functions but can't seem to
come up with the right formula. Can someone please help. Thanks John
:)



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default WHICH COUNT FUNCTION?

Use to COUNTIFs...

"to"???? LOL... Of, course, that should have been "two".

Rick


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default WHICH COUNT FUNCTION?

Thanks Rick , this one works great also. You guys are great!!!
Thanks again, John :)


Rick Rothstein (MVP - VB) wrote:

Use to COUNTIFs...

=COUNTIF(A1:A100,"<=50")-COUNTIF(A1:A100,"<30")

Notice the logical operators... the one in front of the 50 has the
equal sign because we want to count the 50, the second one omits the
equal sign because it is what is being subtracted and we do not want
to subtract the 30.

Rick


"Johnny1r" wrote in message
...
Hello and thank you for looking at my problem. I have a column of
numbers say 1 to 100 (A:1 to A:100) and I want to count the number
of cells in that range that are between 30 and 50 and including 30
and 50 (count should be 21). I've tried most count functions but
can't seem to come up with the right formula. Can someone please
help. Thanks John :)



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
Count function orquidea Excel Discussion (Misc queries) 4 November 16th 07 05:30 PM
COUNT function... I think! Rebekah Excel Worksheet Functions 2 September 7th 07 08:50 AM
Count function Liz23 Excel Worksheet Functions 2 March 15th 06 02:21 PM
i need help with the "count" function kippercat Excel Worksheet Functions 1 March 9th 05 09:58 AM
count function ChrisC Excel Worksheet Functions 5 November 9th 04 01:40 AM


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

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

About Us

"It's about Microsoft Excel"