Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Formula Greater than Less Than

I need a formula that states countif numbers in Column A are greater than 30,
but less than 90. Very easy, but I don't know how to do it. My next cell
would then say, countif Column A are greater than 90, but less than 120.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula Greater than Less Than

=COUNTIF(A:A,"<"&90)-COUNTIF(A:A,"<"&30)

--
Gary''s Student - gsnu200764
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Formula Greater than Less Than

Be careful (case 1: 30, <90) (case 2: 90, <120) What about equal to 90 -
these get missed
I have reworded for (case 1: =30, <90)
A number of possibilities

a) =COUNTIF(A:A, "=30) - COUNTIF(A:A,"=90")
How many are 30 or over MINUS those over 90
b) =SUMPRODUCT(--(A1:A1000=30),--(A1:A1000<90)
Must be equal or over 30 AND less than 90
Do not use A:A with SUMPRODUCT but use a range
c) FREQUENCY - see Help

More on SUMPRODUCT
For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"Cindy" wrote in message
...
I need a formula that states countif numbers in Column A are greater than
30,
but less than 90. Very easy, but I don't know how to do it. My next cell
would then say, countif Column A are greater than 90, but less than 120.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Greater than Less Than

=COUNTIF(A1:A100,"30")-COUNTIF(A1:A100,"=90")
=COUNTIF(A1:A100,"90")-COUNTIF(A1:A100,"=120")
--
David Biddulph

"Cindy" wrote in message
...
I need a formula that states countif numbers in Column A are greater than
30,
but less than 90. Very easy, but I don't know how to do it. My next cell
would then say, countif Column A are greater than 90, but less than 120.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Formula Greater than Less Than

I see your point-Thanks for the great catch.

"Bernard Liengme" wrote:

Be careful (case 1: 30, <90) (case 2: 90, <120) What about equal to 90 -
these get missed
I have reworded for (case 1: =30, <90)
A number of possibilities

a) =COUNTIF(A:A, "=30) - COUNTIF(A:A,"=90")
How many are 30 or over MINUS those over 90
b) =SUMPRODUCT(--(A1:A1000=30),--(A1:A1000<90)
Must be equal or over 30 AND less than 90
Do not use A:A with SUMPRODUCT but use a range
c) FREQUENCY - see Help

More on SUMPRODUCT
For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"Cindy" wrote in message
...
I need a formula that states countif numbers in Column A are greater than
30,
but less than 90. Very easy, but I don't know how to do it. My next cell
would then say, countif Column A are greater than 90, but less than 120.




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
Greater than but less than formula Storm Excel Worksheet Functions 3 July 11th 07 07:50 PM
Greater than formula Angela Excel Worksheet Functions 2 January 22nd 07 01:47 PM
Greater than formula Tracey Excel Worksheet Functions 2 January 5th 06 09:02 PM
Greater than formula! nekteo Excel Worksheet Functions 2 December 29th 05 05:09 PM
Less than, Greater than Formula Debbie Excel Discussion (Misc queries) 1 April 13th 05 07:58 PM


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