Sum of one column if other column meets certain criteria.

chic21

New member
Joined
Jan 26, 2017
Messages
1
Reaction score
0
Points
0
i have 20 years of wildlife data that i need to evaluate. i have 3 populations (A, B, C) and 3 status categories (Breeding, Active, Inactive). There are over 150 rows of data. The question is "how many inactive groups from each year were active or breeding the year before?" See table 2 as an example of raw data and the results should show in a table as shown in table 2. Thanks for any help! This is a massive project and this is only one of several questions that i can answer with a short cut in excel.

Table 1.
2016201520142013
ABreedingBreedingActiveInactive
BInactiveBreedingInactiveActive
CActiveInactiveBreedingActive
CBreedingInactiveInactiveActive


Table 2.
2016201520142013
A0000
B1010
C0110
 
Counting with two criteria

Why in Table2 type 'A' result is not 1 for the year 2013 if it has been inactive?
Or I did not fully understand you.

btw: Try this formula below if can help. Copy down and across. Range I2:I4 contain A,B,C
Code:
=SUMPRODUCT((B$2:B$150="Inactive")*($A$2:$A$150=$I2))
or
Code:
=IF(SUMPRODUCT((B$2:B$150="Inactive")*($A$2:$A$150=$I2))>0;1;0)
 
Back
Top