#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BC BC is offline
external usenet poster
 
Posts: 26
Default Count if

I have numbers in A1:A100, lets say 1 - 100. I also have a number in C11 and
a number in E11. How do I get a count of how many numbers in A1:A100 fall
between C11 and E11?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Count if

Try this formula if "between" meant not to count the values in C11 and
E11...

=SUMPRODUCT((A1:A100C11)*(A1:A100<E11))

Try this formula if "between" meant to include them...

=SUMPRODUCT((A1:A100=C11)*(A1:A100<=E11))

--
Rick (MVP - Excel)


"BC" wrote in message
...
I have numbers in A1:A100, lets say 1 - 100. I also have a number in C11
and
a number in E11. How do I get a count of how many numbers in A1:A100 fall
between C11 and E11?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BC BC is offline
external usenet poster
 
Posts: 26
Default Count if

Thanks Rick, just what I needed

"Rick Rothstein" wrote:

Try this formula if "between" meant not to count the values in C11 and
E11...

=SUMPRODUCT((A1:A100C11)*(A1:A100<E11))

Try this formula if "between" meant to include them...

=SUMPRODUCT((A1:A100=C11)*(A1:A100<=E11))

--
Rick (MVP - Excel)


"BC" wrote in message
...
I have numbers in A1:A100, lets say 1 - 100. I also have a number in C11
and
a number in E11. How do I get a count of how many numbers in A1:A100 fall
between C11 and E11?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BC BC is offline
external usenet poster
 
Posts: 26
Default Count if

But what if 2 or more of the numbers in A1:A100 are the same?

"Rick Rothstein" wrote:

Try this formula if "between" meant not to count the values in C11 and
E11...

=SUMPRODUCT((A1:A100C11)*(A1:A100<E11))

Try this formula if "between" meant to include them...

=SUMPRODUCT((A1:A100=C11)*(A1:A100<=E11))

--
Rick (MVP - Excel)


"BC" wrote in message
...
I have numbers in A1:A100, lets say 1 - 100. I also have a number in C11
and
a number in E11. How do I get a count of how many numbers in A1:A100 fall
between C11 and E11?

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
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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