Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Countif with two criterias

Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Countif with two criterias

Easiest is to concantenate put this in C2
=A1&B1
then put your criteria in a column as one word
joeyes
then do your countif
=COUNTIF(C2:C6,D1)
--
--
-John
Please rate when your question is answered to help us and others know what
is helpful.

"Ricardo" wrote in message
...
Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Countif with two criterias

=SUMPRODUCT(--(A2:A20="Joe"),--(B2:B20="Yes"))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Ricardo" wrote in message
...
Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Countif with two criterias

You can use SUMPRODUCT: =SUMPRODUCT(--(A1:A10="Joe"),--(B1:B10="Yes"))

You can't use SUMIF with multiple criteria. You could use COUNTIF if you
were to concatenate columns A and B and do the COUNTIF off that column of
concatenated text strings, as suggested by the other person to respond.

Dave
--
Brevity is the soul of wit.


"Ricardo" wrote:

Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Countif with two criterias

If you have Excel 2007, you can use

=COUNTIFS(A2:A20,"Joe",B2:B20,"Yes")

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Ricardo" wrote in message
...
Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Countif with two criterias

Thanks Bob

"Bob Phillips" escreveu:

If you have Excel 2007, you can use

=COUNTIFS(A2:A20,"Joe",B2:B20,"Yes")

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Ricardo" wrote in message
...
Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Countif with two criterias

Thanks Dave

With your help finally I finished my work

"Dave F" escreveu:

You can use SUMPRODUCT: =SUMPRODUCT(--(A1:A10="Joe"),--(B1:B10="Yes"))

You can't use SUMIF with multiple criteria. You could use COUNTIF if you
were to concatenate columns A and B and do the COUNTIF off that column of
concatenated text strings, as suggested by the other person to respond.

Dave
--
Brevity is the soul of wit.


"Ricardo" wrote:

Hi all

I need your help. i need to use the countif but with two criterias ...
something like the sumproduct and the sum if.

Example:
Col. A Col. B
Joe Yes
John No
John No
Joe Yes
Joe No

I need to count how many Joe with Yes I have.

Thanks,

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
COUNTIF with two criteria's Holly Excel Worksheet Functions 4 September 26th 06 06:01 PM
2 criterias for countif - Greg Excel Worksheet Functions 1 June 23rd 06 07:39 PM
Countif, two criterias need help Axel Excel Worksheet Functions 12 April 30th 06 01:22 PM
Formula format for Count or Countif funtion with two criterias Debi Excel Worksheet Functions 2 September 26th 05 08:23 PM
countif help for multiple criterias tdro Excel Worksheet Functions 2 June 14th 05 05:06 PM


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