Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Count if - 2 conditions

Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error somewhere.

Thanks in advance.
Escarly

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count if - 2 conditions

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),

It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly



  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Count if - 2 conditions

=SUMPRODUCT((E5:E30="mama")*(C5:C30=4))

Vaya con Dios,
Chuck, CABGx3



"orquidea" wrote:

Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error somewhere.

Thanks in advance.
Escarly

  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Count if - 2 conditions

Good catch Biff...........I was reading out of my dominant eye again........<g

Vaya con Dios,
Chuck, CABGx3



"T. Valko" wrote:

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),


It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Count if - 2 conditions

I excpect 2, because rows have the 2 conditions "mama" and "4"

"T. Valko" wrote:

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),


It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count if - 2 conditions

Try this:

=SUMPRODUCT(--((B5:B30=4)+(C5:C30=4)0),--(E5:E30="mama"))

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
I excpect 2, because rows have the 2 conditions "mama" and "4"

"T. Valko" wrote:

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),


It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Count if - 2 conditions

thanks

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--((B5:B30=4)+(C5:C30=4)0),--(E5:E30="mama"))

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
I excpect 2, because rows have the 2 conditions "mama" and "4"

"T. Valko" wrote:

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),

It depends on how you want this to count. You're referencing a 2 column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count if - 2 conditions

You're welcome!

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
thanks

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--((B5:B30=4)+(C5:C30=4)0),--(E5:E30="mama"))

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
I excpect 2, because rows have the 2 conditions "mama" and "4"

"T. Valko" wrote:

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"),

It depends on how you want this to count. You're referencing a 2
column
range with B5:C30. What result do you expect with this sample:

......B.....C.....E
......4.....4....Mama
......1.....4....Mama

Should the result be 2 or 3?

--
Biff
Microsoft Excel MVP


"orquidea" wrote in message
...
Hi:

How would I write A "COUNT IF AND" formula? I tried

COUNT IF AND(E5:E30,"MAMA"),(B:5:C30,"4"), but there is an error
somewhere.

Thanks in advance.
Escarly









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
count on multiple conditions Debbie Excel Worksheet Functions 6 September 21st 06 06:34 PM
Count with 2 conditions, second one OR [email protected] Excel Worksheet Functions 2 June 4th 06 05:55 PM
How to count after 2 conditions are met Dave Schwinger Excel Worksheet Functions 3 April 3rd 06 09:29 PM
Count ifs - 2 conditions Nick Excel Discussion (Misc queries) 5 January 12th 06 05:06 PM
Count with 2 conditions? Lee Excel Worksheet Functions 2 March 19th 05 02:45 AM


All times are GMT +1. The time now is 11:13 PM.

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"