Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mwrfsu
 
Posts: n/a
Default Check to see if cell data is within a range


I want to count the number of cells with in a range that fall between a
certain range. I can get it to work with one criteria but not when
adding the second.

For example, I want to count the number of cells between I8:I24 that
are = 75 but < 90.

This works for greater than 75 but not sure what to do for the less
than 90.
=COUNTIF(FIN!$I$8:$I$24,"=.75")

Thank you for any help.


--
mwrfsu
------------------------------------------------------------------------
mwrfsu's Profile: http://www.excelforum.com/member.php...o&userid=26459
View this thread: http://www.excelforum.com/showthread...hreadid=397850

  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

This technique can be adapted to any combination of conditions.

Consider the formula

=(I8=75)*(I8<90)

It returns 1 for the numbers you want to count and 0 otherwise. Enter this
in a column to the right of I and copy down. The sum of the 1's is what you
want.

--
Gary's Student


"mwrfsu" wrote:


I want to count the number of cells with in a range that fall between a
certain range. I can get it to work with one criteria but not when
adding the second.

For example, I want to count the number of cells between I8:I24 that
are = 75 but < 90.

This works for greater than 75 but not sure what to do for the less
than 90.
=COUNTIF(FIN!$I$8:$I$24,"=.75")

Thank you for any help.


--
mwrfsu
------------------------------------------------------------------------
mwrfsu's Profile: http://www.excelforum.com/member.php...o&userid=26459
View this thread: http://www.excelforum.com/showthread...hreadid=397850


  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

2 ways

=countif(I8:I24,"<90")-=countif(I8:I24,"<=75")

=SUMPRODUCT(--(I8:I24<90),--(I8:I24,<=75))


"mwrfsu" wrote:


I want to count the number of cells with in a range that fall between a
certain range. I can get it to work with one criteria but not when
adding the second.

For example, I want to count the number of cells between I8:I24 that
are = 75 but < 90.

This works for greater than 75 but not sure what to do for the less
than 90.
=COUNTIF(FIN!$I$8:$I$24,"=.75")

Thank you for any help.


--
mwrfsu
------------------------------------------------------------------------
mwrfsu's Profile: http://www.excelforum.com/member.php...o&userid=26459
View this thread: http://www.excelforum.com/showthread...hreadid=397850


  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

first formula should have been

=countif(I8:I24,"<90")-countif(I8:I24,"<=75")


"Duke Carey" wrote:

2 ways

=countif(I8:I24,"<90")-=countif(I8:I24,"<=75")

=SUMPRODUCT(--(I8:I24<90),--(I8:I24,<=75))


"mwrfsu" wrote:


I want to count the number of cells with in a range that fall between a
certain range. I can get it to work with one criteria but not when
adding the second.

For example, I want to count the number of cells between I8:I24 that
are = 75 but < 90.

This works for greater than 75 but not sure what to do for the less
than 90.
=COUNTIF(FIN!$I$8:$I$24,"=.75")

Thank you for any help.


--
mwrfsu
------------------------------------------------------------------------
mwrfsu's Profile: http://www.excelforum.com/member.php...o&userid=26459
View this thread: http://www.excelforum.com/showthread...hreadid=397850


  #5   Report Post  
Junior Member
 
Location: Washington, DC
Posts: 16
Default

Use an array function. Array functions perform individual calculations on multiple cells simultaneously. But to get them to work, you must hold down CTRL and SHIFT while pressing ENTER after typing in the formula.

Here's the formula. Replace "_GT_" and "_LT" with the appropriate signs. For some reason this site erases them upon posting... The pointed brackets will be automatically created by Excel after you hold down CTRL and SHIFT and press ENTER:

={SUM(IF(I8:I24_GT_=75,IF(I8:I24_LT_90,1,0),0))}

Knightly

Quote:
Originally Posted by mwrfsu
I want to count the number of cells with in a range that fall between a
certain range. I can get it to work with one criteria but not when
adding the second.

For example, I want to count the number of cells between I8:I24 that
are = 75 but 90.

This works for greater than 75 but not sure what to do for the less
than 90.
=COUNTIF(FIN!$I$8:$I$24,"=.75")

Thank you for any help.


--
mwrfsu
------------------------------------------------------------------------
mwrfsu's Profile: http://www.excelforum.com/member.php...o&userid=26459
View this thread: http://www.excelforum.com/showthread...hreadid=397850
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
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 01:54 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
How do I check for duplications in a range of data (excel)? -Adrianna_ Excel Worksheet Functions 2 November 24th 04 10:25 AM


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