#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting Numbers

I have a list of numbers I want to know how many fall into a certain range.
Is there a way to count them?

EX:

A 12
B 15
C 16
D 2
E 100

now I would like to know how many fall between 10 and 20, is there a
function? something like =countif(A1:E1, 1020) just an example! thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Counting Numbers

=COUNTIF(A1:E1,"10")-COUNTIF(A1:E1,"20")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Buffalo" wrote:

I have a list of numbers I want to know how many fall into a certain range.
Is there a way to count them?

EX:

A 12
B 15
C 16
D 2
E 100

now I would like to know how many fall between 10 and 20, is there a
function? something like =countif(A1:E1, 1020) just an example! thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Counting Numbers

On Wed, 3 Dec 2008 13:37:45 -0800, Buffalo
wrote:

I have a list of numbers I want to know how many fall into a certain range.
Is there a way to count them?

EX:

A 12
B 15
C 16
D 2
E 100

now I would like to know how many fall between 10 and 20, is there a
function? something like =countif(A1:E1, 1020) just an example! thanks


Try this formula:

=SUMPRODUCT((A1:E110)*(A1:E1<20))

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting Numbers

Thank you that worked right away

"Luke M" wrote:

=COUNTIF(A1:E1,"10")-COUNTIF(A1:E1,"20")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Buffalo" wrote:

I have a list of numbers I want to know how many fall into a certain range.
Is there a way to count them?

EX:

A 12
B 15
C 16
D 2
E 100

now I would like to know how many fall between 10 and 20, is there a
function? something like =countif(A1:E1, 1020) just an example! thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Counting Numbers

The last COUNTIF should use = (greater than or equal) and not just (greater than)...

=COUNTIF(A1:A6,"10")-COUNTIF(A1:A6,"=20")

otherwise a value of 20 will be counted as being inside the range.

--
Rick (MVP - Excel)


"Luke M" wrote in message ...
=COUNTIF(A1:E1,"10")-COUNTIF(A1:E1,"20")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Buffalo" wrote:

I have a list of numbers I want to know how many fall into a certain range.
Is there a way to count them?

EX:

A 12
B 15
C 16
D 2
E 100

now I would like to know how many fall between 10 and 20, is there a
function? something like =countif(A1:E1, 1020) just an example! 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
counting numbers?? bouncebackability Excel Worksheet Functions 7 January 22nd 08 09:14 PM
Counting two numbers vijaydsk1970 Excel Worksheet Functions 3 April 3rd 07 06:27 PM
counting numbers dmack Excel Discussion (Misc queries) 6 January 24th 07 07:50 PM
counting numbers cj21 Excel Discussion (Misc queries) 6 February 16th 06 11:28 PM
Counting numbers cj21 Excel Discussion (Misc queries) 10 February 16th 06 06:55 PM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"