Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 788
Default Countif numbers fall between two values

Hi,

Looking for a formula that will allow me to count how many numbers in a
range fall between larger than 50% and smaller than 85% as well as larger
than 85% and less than 100%.

Currrently I am using a countif(range,<.5) and countif(range.5) but if I
want to expand my criteria to count how many are 85 and 100, the values for
100 are in with the values from 85 and subtracting them gives me a negative

number.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Countif numbers fall between two values

Try this

=COUNTIF(A1:A96,"50%")-COUNTIF(A1:A96,"85%")
=COUNTIF(A1:A96,"85%")-COUNTIF(A1:A96,"100%")

Mike


Mike


"Chris" wrote:

Hi,

Looking for a formula that will allow me to count how many numbers in a
range fall between larger than 50% and smaller than 85% as well as larger
than 85% and less than 100%.

Currrently I am using a countif(range,<.5) and countif(range.5) but if I
want to expand my criteria to count how many are 85 and 100, the values for
100 are in with the values from 85 and subtracting them gives me a negative

number.

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Countif numbers fall between two values

Chris,

Typically, for any band

=countif(range,lowerlimit)-countif(range,upperlimit)

OR

=countif(range,<upperlimit)-countif(range,<lowerlimit)


So, for your specific problem, for example:

=COUNTIF(A:A,"85")-COUNTIF(A:A,"100")

Of course, you may need to use = or <= in one or both of the comparisons, depending on how you want
to handle border issues.

HTH,
Bernie
MS Excel MVP


"Chris" wrote in message
...
Hi,

Looking for a formula that will allow me to count how many numbers in a
range fall between larger than 50% and smaller than 85% as well as larger
than 85% and less than 100%.

Currrently I am using a countif(range,<.5) and countif(range.5) but if I
want to expand my criteria to count how many are 85 and 100, the values for
100 are in with the values from 85 and subtracting them gives me a negative

number.

Any ideas?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Countif numbers fall between two values

=SUMPRODUCT(--(A1:A100.5),--(A1:A100<.85))
=SUMPRODUCT(--(A1:A100.85),--(A1:A100<1))

Hope this helps.
--
John C


"Chris" wrote:

Hi,

Looking for a formula that will allow me to count how many numbers in a
range fall between larger than 50% and smaller than 85% as well as larger
than 85% and less than 100%.

Currrently I am using a countif(range,<.5) and countif(range.5) but if I
want to expand my criteria to count how many are 85 and 100, the values for
100 are in with the values from 85 and subtracting them gives me a negative

number.

Any ideas?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Countif numbers fall between two values

=SUM(COUNTIF(A:A,{"0.5","=0.85"})*{1,-1})

=SUM(COUNTIF(A:A,{"0.85","=1"})*{1,-1})


"Chris" wrote:

Hi,

Looking for a formula that will allow me to count how many numbers in a
range fall between larger than 50% and smaller than 85% as well as larger
than 85% and less than 100%.

Currrently I am using a countif(range,<.5) and countif(range.5) but if I
want to expand my criteria to count how many are 85 and 100, the values for
100 are in with the values from 85 and subtracting them gives me a negative

number.

Any ideas?

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
syntax for countif when cells fall within a numerical range Tom L Excel Worksheet Functions 5 May 31st 08 03:22 AM
Charting X values when they rise and fall Eleanor Charts and Charting in Excel 1 November 9th 06 01:22 PM
how do i sum 2 values that fall between date ranges? Neil Excel Worksheet Functions 2 March 30th 05 06:51 PM
making used values fall from a list static69 Excel Discussion (Misc queries) 4 February 17th 05 03:04 AM
Need totals of values that fall within a given year Pierre Excel Worksheet Functions 12 January 5th 05 05:45 PM


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