ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count based on Conditions (https://www.excelbanter.com/excel-worksheet-functions/206407-count-based-conditions.html)

shyamgnair

Count based on Conditions
 
Hi,
I have two columns Defect Type & Status in an excel sheet. I need to arrive
at a summary based on the various values that are avaialble inthese columns.
See the below table
Defect Type Status
====================
Defect Works as Designed
Defect Duplicate
Defect Duplicate
Defect Duplicate
Defect Works as Designed
Defect Duplicate
Defect Works as Designed
Defect Duplicate
Defect Fixed
Defect Fixed
Defect Works as Designed
Document Open
Document Open

I need to get the count for the following

Defect + Works as Designed = X nos
Defect + Fixed = X nos
Document + Works as Designed = X nos.

Is there any formula in excel which can do the same?


Stefi

Count based on Conditions
 
Defect + Works as Designed = X nos
=SUMPRODUCT(--($A$2:$A$14="Defect"),--($B$2:$B$14="Works as Designed"))

Defect + Fixed = X nos

=SUMPRODUCT(--($A$2:$A$14="Defect"),--($B$2:$B$14="Fixed"))

Document + Works as Designed = X nos.

=SUMPRODUCT(--($A$2:$A$14="Document"),--($B$2:$B$14="Works as Designed"))

Regards,
Stefi




All times are GMT +1. The time now is 02:33 PM.

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