Forum

Notifications
Clear all

countif with omission

3 Posts
3 Users
0 Reactions
70 Views
(@khoro)
Posts: 3
Active Member
Topic starter
 

hello

may you please help, I want to count how many dogs and donkeys to find out how many are black and how many are brown but I want to omit cats and horses

 
Posted : 11/12/2021 1:00 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

You can use the database function DCOUNT or you can use SUMPRODUCT to get what you want.
See attached file for examples.

Br,
Anders

 
Posted : 11/12/2021 6:49 pm
(@debaser)
Posts: 836
Member Moderator
 

You could also use something like:

=SUM(COUNTIFS(B:B,{"Dog","Donkey"},C:C,"Black"))

 
Posted : 14/12/2021 7:18 am
Share: