A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

countaif



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2008, 08:42 AM posted to microsoft.public.excel.worksheet.functions
A.Mourice
external usenet poster
 
Posts: 1
Default countaif

plz. i need a help.
How can I use countaif with many conditions or any similar formula?
  #2  
Old August 27th, 2008, 08:55 AM posted to microsoft.public.excel.worksheet.functions
Rajesh
external usenet poster
 
Posts: 47
Default countaif

Try and function within countif.

rajesh

"A.Mourice" wrote:

plz. i need a help.
How can I use countaif with many conditions or any similar formula?

  #3  
Old August 27th, 2008, 09:04 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default countaif

"A.Mourice" wrote:
How can I use countaif with many conditions or any similar formula?


You can use sumproduct for multi-criteria counts
Eg in say, C1:
=SUMPRODUCT((A1:A10="Peter")*(B1:B1050))
will return the counts of lines where col A contains: Peter
AND where col B contains numbers greater than 50
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
  #4  
Old August 27th, 2008, 09:06 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_1201_]
external usenet poster
 
Posts: 1
Default countaif

You would use the SUMPRODUCT formula. There are two forms for it...

=SUMPRODUCT(Condition1*Condition2*etc)

or

=SUMPRODUCT(--Condition1,--Condition2,--etc)

where, for your stated question, Condition1/2/etc. are logical multi-range
expressions such as this...

(A1:A205)

Here is some more detailed information about SUMPRODUCT...

http://xldynamic.com/source/xld.SUMPRODUCT.html

Rick


"A.Mourice" wrote in message
...
plz. i need a help.
How can I use countaif with many conditions or any similar formula?


  #5  
Old August 27th, 2008, 03:32 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default countaif

Unfortunately, Rajesh, Countif is not that smart. You need to use Sumproduct
to achieve the desired results.

Regards,
Fred.

"rajesh" wrote in message
...
Try and function within countif.

rajesh

"A.Mourice" wrote:

plz. i need a help.
How can I use countaif with many conditions or any similar formula?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.