ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   counting two ranges for one criteria (https://www.excelbanter.com/excel-worksheet-functions/194934-counting-two-ranges-one-criteria.html)

Jules in IL

counting two ranges for one criteria
 
I am trying to find a function that will tell me how many males make up the
16 Equip Maint employees; how many are female and how many are minority.
I've been trying to count two ranges for one criteria - but it tells me i
have too many ranges. The Equip Maint is in the Dept column and the M is in
the Male column. I need to know the number of males, females and minorities
in each depatment.

Department Total Male Female Minority
Accounting 1
Equip Maint 16
HR 1
Mfg Mgmt 9
QC 2
General Plant 85
Warehouse 3
Total 117 0 0 0

Thanks - Jules


Bob Phillips[_3_]

counting two ranges for one criteria
 
=SUMPRODUCT(--($A$2:$A$200="Equip Maint"),--(B$2:B$200="M"))

etc.

--
__________________________________
HTH

Bob

"Jules in IL" <Jules in wrote in message
...
I am trying to find a function that will tell me how many males make up the
16 Equip Maint employees; how many are female and how many are minority.
I've been trying to count two ranges for one criteria - but it tells me i
have too many ranges. The Equip Maint is in the Dept column and the M is
in
the Male column. I need to know the number of males, females and
minorities
in each depatment.

Department Total Male Female Minority
Accounting 1
Equip Maint 16
HR 1
Mfg Mgmt 9
QC 2
General Plant 85
Warehouse 3
Total 117 0 0 0

Thanks - Jules





All times are GMT +1. The time now is 04:23 PM.

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