Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay Jay is offline
external usenet poster
 
Posts: 671
Default COUNTIF....how to use =0 but <9 as CRITERIA

I cannot figure out how to use two criteria with the COUNTIF function. Here
is what
I need to accomplish:

I have a list of 2000 numbers in column A, the numbers are between 0 and
99(inclusive).

I want to see how many numbers are in the following ranges:
1. greater than or equal to 0, less than 9
2. greater than or equal to 10, less than 19
3. greater than or equal to 20, less than 29
..
..
..
..
..
..
9.greater than or equal to 90, less than 99



Using the COUNTIF function how do you nest =0 but <9 to achieve the results
for my first range?


I have tried the following two versions of the function to no avail:

=COUNTIF(A1:A2000,"=0,<9")

=COUNTIF(A1:A2000,"AND(=0,<9)")


Does the COUNTIF function only allow one variable as the criteria??

Any suggestions or a solution would be appreciated.

THANKS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default COUNTIF....how to use =0 but <9 as CRITERIA

Hi,

If you want to use countif you use 2 of them like this

=COUNTIF(A1:A34,"=0")-COUNTIF(A1:A34,"9")

The first counts everything = to your lower number and the second subtracts
everything larger than your largest.
Mike

"Jay" wrote:

I cannot figure out how to use two criteria with the COUNTIF function. Here
is what
I need to accomplish:

I have a list of 2000 numbers in column A, the numbers are between 0 and
99(inclusive).

I want to see how many numbers are in the following ranges:
1. greater than or equal to 0, less than 9
2. greater than or equal to 10, less than 19
3. greater than or equal to 20, less than 29
.
.
.
.
.
.
9.greater than or equal to 90, less than 99



Using the COUNTIF function how do you nest =0 but <9 to achieve the results
for my first range?


I have tried the following two versions of the function to no avail:

=COUNTIF(A1:A2000,"=0,<9")

=COUNTIF(A1:A2000,"AND(=0,<9)")


Does the COUNTIF function only allow one variable as the criteria??

Any suggestions or a solution would be appreciated.

THANKS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default COUNTIF....how to use =0 but <9 as CRITERIA

Hi Jay,

You can use Frequency function .

Do one thing in column b1: b10 put values 9,19,29 --- 99 then in cell c1
put this formula

=FREQUENCY(a1:a2000,b1:b10) and copy down upto c10 and then enter as array
formula .

note : select the range c1:c10 starting with the formula cell. Press F2,
and then press CTRL+SHIFT+ENTER.

Harshawardhan . Shastri

India

================================================== ==========


"Jay" wrote:

I cannot figure out how to use two criteria with the COUNTIF function. Here
is what
I need to accomplish:

I have a list of 2000 numbers in column A, the numbers are between 0 and
99(inclusive).

I want to see how many numbers are in the following ranges:
1. greater than or equal to 0, less than 9
2. greater than or equal to 10, less than 19
3. greater than or equal to 20, less than 29
.
.
.
.
.
.
9.greater than or equal to 90, less than 99



Using the COUNTIF function how do you nest =0 but <9 to achieve the results
for my first range?


I have tried the following two versions of the function to no avail:

=COUNTIF(A1:A2000,"=0,<9")

=COUNTIF(A1:A2000,"AND(=0,<9)")


Does the COUNTIF function only allow one variable as the criteria??

Any suggestions or a solution would be appreciated.

THANKS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay Jay is offline
external usenet poster
 
Posts: 671
Default COUNTIF....how to use =0 but <9 as CRITERIA

Harshawardhan and Mike thanks for the info.

Mike yours works as suggested.

thanks for the info on FREQUENCY function.

Harshawardhan is it possible for you to send me an excel sheet with what you
describe in it?

Possibly make a list of 30 or so random numbers between 0 and 99..write the
coding for the frequency function and email it to me.

If you have the time?

My email is



THANKS
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
Countif with more than one criteria Joco Excel Discussion (Misc queries) 2 June 14th 07 11:38 AM
CountIf - 2 Criteria [email protected] Excel Discussion (Misc queries) 3 May 14th 07 06:16 PM
Countif With Criteria JR573PUTT Excel Worksheet Functions 1 February 15th 06 07:00 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM


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