Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ExcelLEarner
 
Posts: n/a
Default > and < criteria in one single expression in excel

i would like to know how to filtered out two different criteria for example
less than 40 and greater than 60 in one expression at COUNTIF function.
example of the formula would be appreciated.


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=COUNTIF(A:A,"<60") - COUNTIF(A:A,"<40")


another

=SUMPRODUCT(--(A1:A1000=40),--(A1:A1000<=60))

See

http://www.mcgimpsey.com/excel/doubleneg.html

for an explanation of how the "--" works.



In article ,
ExcelLEarner wrote:

i would like to know how to filtered out two different criteria for example
less than 40 and greater than 60 in one expression at COUNTIF function.
example of the formula would be appreciated.

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel should allow multiple hyperlinks in a single cell mrpb Excel Discussion (Misc queries) 1 January 18th 05 02:51 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 05:55 PM
Removing single quote from an excel sheet Hari Excel Discussion (Misc queries) 2 December 3rd 04 10:53 PM
Excel Expression Yubasus Excel Discussion (Misc queries) 2 November 26th 04 01:41 AM


All times are GMT +1. The time now is 02:19 PM.

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"