#1   Report Post  
ChrisC
 
Posts: n/a
Default count function

How do I count the number of times a number is between two numbers?

range of cells is B5:B33
would like to know how many times a number shows up that is 124 but <150
  #2   Report Post  
Max
 
Posts: n/a
Default

Try either:

=SUMPRODUCT((B5:B33124)*(B5:B33<150))

or:

=COUNTIF(B5:B33,""&124)-COUNTIF(B5:B33,"="&150)

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----
"ChrisC" wrote in message
...
How do I count the number of times a number is between two numbers?

range of cells is B5:B33
would like to know how many times a number shows up that is 124 but <150



  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

=COUNTIF(B5:B33,""&124)-COUNTIF(B5:B33,"="&150)

No need for the '&' bits unless you putting in cell references in place of those
numbers

=COUNTIF(B5:B33,"124")-COUNTIF(B5:B33,"=150")

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Max" wrote in message
...
Try either:

=SUMPRODUCT((B5:B33124)*(B5:B33<150))

or:

=COUNTIF(B5:B33,""&124)-COUNTIF(B5:B33,"="&150)

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----
"ChrisC" wrote in message
...
How do I count the number of times a number is between two numbers?

range of cells is B5:B33
would like to know how many times a number shows up that is 124 but <150





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


  #4   Report Post  
Max
 
Posts: n/a
Default

Thanks for the refinement, Ken !
Guess softcoding habits die-hard <g
--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik <atyahoo<dotcom
---


  #5   Report Post  
Ken Wright
 
Posts: n/a
Default

LOL :-)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Max" wrote in message
...
Thanks for the refinement, Ken !
Guess softcoding habits die-hard <g
--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik <atyahoo<dotcom
---




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004




  #6   Report Post  
ChrisC
 
Posts: n/a
Default

Thanks, this work great!

"Ken Wright" wrote:

=COUNTIF(B5:B33,""&124)-COUNTIF(B5:B33,"="&150)


No need for the '&' bits unless you putting in cell references in place of those
numbers

=COUNTIF(B5:B33,"124")-COUNTIF(B5:B33,"=150")

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------



"Max" wrote in message
...
Try either:

=SUMPRODUCT((B5:B33124)*(B5:B33<150))

or:

=COUNTIF(B5:B33,""&124)-COUNTIF(B5:B33,"="&150)

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----
"ChrisC" wrote in message
...
How do I count the number of times a number is between two numbers?

range of cells is B5:B33
would like to know how many times a number shows up that is 124 but <150





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004



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
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Whats the function to count the total times a word is displayed Monk Excel Discussion (Misc queries) 3 December 10th 04 10:39 PM
How can I use count function in excel where I have several criter. Princess V Excel Worksheet Functions 14 November 3rd 04 10:18 PM
Sum and Count Function Daniell Excel Worksheet Functions 0 November 2nd 04 12:03 AM
how do I make a function to count days? khamsta Excel Worksheet Functions 2 November 1st 04 10:53 PM


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