Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Counting cells between ranges

How do I count the number of cells that have values between for example $1000
and $2000?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Counting cells between ranges

"Jason30" wrote:
How do I count the number of cells
that have values between for example $1000 and $2000?


One way is to use 2 countifs ..
Assuming source data in col A, placed in say, B1:
=COUNTIF(A:A,"=1000")-COUNTIF(A:A,"2000")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default Counting cells between ranges

Jason30 wrote:
How do I count the number of cells that have values between for
example $1000 and $2000?


If your range is A1:A100, you could use this formula:

=COUNTIF(A1:A100,"<="&2000)-COUNTIF(A1:A100,"<"&1000)


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 299
Default Counting cells between ranges

=COUNTIF(A1:A100,"=1000")-COUNTIF(A1:A100,"2000")

or

=SUMPRODUCT(--(A1:A100=1000),--(A1:A100<=2000))


both formulas include 1000 and 2000, if you really want between use "1000"
and "=2000"
in the first and 1000 and <2000 for the last


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com


"Jason30" wrote in message
...
How do I count the number of cells that have values between for example
$1000
and $2000?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting cells between ranges

=countif(a1:a10,""&1000) - countif(a1:a10,""&2000)

is one way. (I'm not sure what should happen at 1000 and 2000, though. You may
want to change the to = in either or both (or none).)

Jason30 wrote:

How do I count the number of cells that have values between for example $1000
and $2000?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Counting cells between ranges

Thanks for the replies guys

"Jason30" wrote:

How do I count the number of cells that have values between for example $1000
and $2000?

  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Counting cells between ranges

"Jason30" wrote:
Thanks for the replies guys


You're welcome, Jason!
Thanks for the feedback ..

Ahh, if only every original poster was like you ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
including two ranges of cells in an IF formaula Mark Excel Worksheet Functions 9 May 25th 06 03:49 PM
Formula for counting number of cells Pawan Excel Discussion (Misc queries) 2 February 22nd 06 05:20 AM
Counting cells with a specified frequency(how many times it appear Kelvin Excel Discussion (Misc queries) 0 July 13th 05 08:36 AM
Counting the total number of cells with specified condition(freque Kelvin Excel Discussion (Misc queries) 2 July 10th 05 12:22 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM


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