ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CountIF on two conditions (https://www.excelbanter.com/excel-programming/332116-countif-two-conditions.html)

Darin Kramer

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 ***

Max

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 ***




Darin Kramer

CountIF on two conditions
 

Thanks - works perfectly!!! :)


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

Max

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 ***





All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com