COUNT or IF Function for Multiple Text Criteria across rows and columns

cbrust

New Member
Joined
Jan 24, 2013
Messages
1
Please help!
Trying to semi-automate this counting process I have had to do manually by sorting and sorting and sorting then counting...

I am working with servers, business groups, etc, but to simplify, my spreadsheet is structured like this:

Type Color Sex Owner Rescued Shots
Dog red F Frank Y T-1
Dog brown F Jim Y T-1
Dog black M Mary Y T-2
Cat yellow F James Y R-1
Cat black M Bob N R-2
Cat brown M Sue Y T-2
Cat white M Laura N
Bird yellow F Sarah Y H-2
Bird white M N T-1
Mouse gray F Tom N T-2
Mouse white F Linda N R-1
Mouse black M Y R-2
Mouse brown M N
Mouse white M N H-1
Mouse black F Kate Y H-2

I need to create a few formulas that counts things like: how many mice... that are black... males... without names... have had either H-1 or H2 shots?

Please help if you can, thanks in advance!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
try this:
=COUNTIFS(A1:A2,"=Mouse",B1:B2,"=black",C1:C2,"=M",D1:D2,"=""",F1:F2,"=H-*")
assuming type, color, sex, etc, are in that order and column header names.
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,939
Members
449,134
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top