#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default CountIF Function

How Can I have multiple condition using countif function.
Ex: If I want to count only those cells that have value 300 and <700
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default CountIF Function

Hi

You can use Sumproduct:

=SUMPRODUCT((A1:A100300)+0,(A1:A100<700)+0)

Note that you can't use whole column refs with sumproduct though (ie
so no A:A - the max is A1:A65536).

Alternatively, you could use COUNTIF:

=SUM(COUNTIF(A:A,{"300","=700"})*{1,-1})

Hope this helps!

Richard


On 15 Mar, 15:19, ub wrote:
How Can I have multiple condition using countif function.
Ex: If I want to count only those cells that have value 300 and <700



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default CountIF Function

=COUNTIF(A1:A100,"300")-COUNTIF(A1:A100,"=700")


"ub" wrote:

How Can I have multiple condition using countif function.
Ex: If I want to count only those cells that have value 300 and <700

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
UB UB is offline
external usenet poster
 
Posts: 120
Default CountIF Function

Hi,
It worked, Thanks
How can we use the same countif function or any other function if we are
wrking with dates or strings.
Ex: to count cells between 2 set of dates or to count cells that match
string('sale' or 'quote')


"Teethless mama" wrote:

=COUNTIF(A1:A100,"300")-COUNTIF(A1:A100,"=700")


"ub" wrote:

How Can I have multiple condition using countif function.
Ex: If I want to count only those cells that have value 300 and <700

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
please help how to combine IF function with Countif function Dinesh Excel Worksheet Functions 6 March 30th 06 08:28 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
Countif function David Harrison Excel Worksheet Functions 2 September 16th 05 12:13 PM
help with the countif function!! AtlantaMegan Excel Worksheet Functions 2 July 7th 05 03:29 AM


All times are GMT +1. The time now is 01:11 AM.

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"