Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Judy Felfe
 
Posts: n/a
Default counting occurrences in a range

How do I count the number of occurrences of values between 25,000 and 50,000
within a range of numbers? I have tried

countif(g2:g1695,AND("=25000","<50000"))

but it gives a result of 0. Thanks in advance.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(G2:G1695=25000),--(G2:G1695<50000))


--
HTH

Bob Phillips

"Judy Felfe" wrote in message
...
How do I count the number of occurrences of values between 25,000 and

50,000
within a range of numbers? I have tried

countif(g2:g1695,AND("=25000","<50000"))

but it gives a result of 0. Thanks in advance.



  #3   Report Post  
Judy Felfe
 
Posts: n/a
Default

Thanks for the quick response. It worked. I can't say I understand the
formula. Could you break it down for me?

g2:g1695=25000 is one array, but what does it mean?
what do the double minus signs mean?
Thanks in advance, again!

"Bob Phillips" wrote:

=SUMPRODUCT(--(G2:G1695=25000),--(G2:G1695<50000))


--
HTH

Bob Phillips

"Judy Felfe" wrote in message
...
How do I count the number of occurrences of values between 25,000 and

50,000
within a range of numbers? I have tried

countif(g2:g1695,AND("=25000","<50000"))

but it gives a result of 0. Thanks in advance.




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

all explained at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
HTH

Bob Phillips

"Judy Felfe" wrote in message
...
Thanks for the quick response. It worked. I can't say I understand the
formula. Could you break it down for me?

g2:g1695=25000 is one array, but what does it mean?
what do the double minus signs mean?
Thanks in advance, again!

"Bob Phillips" wrote:

=SUMPRODUCT(--(G2:G1695=25000),--(G2:G1695<50000))


--
HTH

Bob Phillips

"Judy Felfe" wrote in message
...
How do I count the number of occurrences of values between 25,000 and

50,000
within a range of numbers? I have tried

countif(g2:g1695,AND("=25000","<50000"))

but it gives a result of 0. Thanks in advance.






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 within a filtered range Jeff Excel Worksheet Functions 2 June 13th 05 03:33 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 11th 05 05:24 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
Counting occurrences of multiple conditions Jvanderv1 Excel Discussion (Misc queries) 2 April 6th 05 01:07 AM


All times are GMT +1. The time now is 02:13 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"