I received a massive file from a friend who has done extensive research and has been counting her results manually. We need to know for each subject (row) in the below example:
Case 1. How many LIVING objects e.g. Dog or Mouse the subject answered incorrectly. (Column B = "L" and Column C =1) and (Column F = "L" and Column G = 1).
Case 2. Same as above for NONLIVING objects. (Column D = "N" and Column E = 1).
I show case 2 just for illustrative purposes... If we solve case 1, we solve the total problem.
The file is huge so I am trying to be as efficient as possible by using something like:
=SUMPRODUCT(((Data!1:1="LivNonLiv")*(Data!2:2="L"))*((RIGHT(Data!1:1,3)="err")*(Data!2:2=1)))
I am able to get the correct results when I separate the formula:
=SUMPRODUCT((Data!1:1="LivNonLiv")*(Data!2:2="L")) returns the value 2 and
=SUMPRODUCT((RIGHT(Data!1:1,3)="err")*(Data!2:2=1)) returns the value 2 for subject 1
But then always get zero when I bring them together.
<tbody>
</tbody>
Case 1. How many LIVING objects e.g. Dog or Mouse the subject answered incorrectly. (Column B = "L" and Column C =1) and (Column F = "L" and Column G = 1).
Case 2. Same as above for NONLIVING objects. (Column D = "N" and Column E = 1).
I show case 2 just for illustrative purposes... If we solve case 1, we solve the total problem.
The file is huge so I am trying to be as efficient as possible by using something like:
=SUMPRODUCT(((Data!1:1="LivNonLiv")*(Data!2:2="L"))*((RIGHT(Data!1:1,3)="err")*(Data!2:2=1)))
I am able to get the correct results when I separate the formula:
=SUMPRODUCT((Data!1:1="LivNonLiv")*(Data!2:2="L")) returns the value 2 and
=SUMPRODUCT((RIGHT(Data!1:1,3)="err")*(Data!2:2=1)) returns the value 2 for subject 1
But then always get zero when I bring them together.
Col A | Col B | Col C | Col D | Col E | Col F | Col G |
Subject | LivNonLiv | DogErr | LivNonLiv | HouseErr | LivNonLiv | MouseErr |
1 | L | 1 | N | 0 | L | 1 |
2 | L | 0 | N | 0 | L | 1 |
3 | L | 1 | N | 1 | L | 0 |
4 | L | 0 | N | 1 | L | 0 |
5 | L | 0 | N | 1 | L | 0 |
<tbody>
</tbody>