Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default CountIF on two conditions

Hi There


I have a simple countif :
COUNTIF($M$2:$M$7145,Dog)

I want to change it to take account of another conditon. So If in column
P over the same range there is an owner named Jack, then count the
instances of Dog in column M.

There are various owners in column P.

Thanks and Regards

D

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CountIF on two conditions

Try :
=SUMPRODUCT(($M$2:$M$7145="Dog")*($P$2:$P$7145="Ja ck"))
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Darin Kramer" wrote in message
...
Hi There


I have a simple countif :

I want to change it to take account of another conditon. So If in column
P over the same range there is an owner named Jack, then count the
instances of Dog in column M.

There are various owners in column P.

Thanks and Regards

D

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 397
Default CountIF on two conditions


Thanks - works perfectly!!! :)


*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CountIF on two conditions

You're welcome !
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Darin Kramer" wrote in message
...

Thanks - works perfectly!!! :)


*** Sent via Developersdex http://www.developersdex.com ***



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 using two conditions NWO Excel Discussion (Misc queries) 1 May 20th 09 12:47 AM
COUNTIF with two conditions John Excel Worksheet Functions 2 January 27th 09 03:02 AM
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
Countif with two conditions Bob Phillips Excel Discussion (Misc queries) 0 July 3rd 07 09:37 PM
Using countif with 2 conditions Cheryl W Excel Worksheet Functions 2 September 14th 05 03:38 PM


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