Hello,
I am using Excel 2007.
In cells A1: A3, I have the values A, B, C.
In cells B1:B3, I have the values 1, 2, 1.
I want to count the number of cells in column A where its corresponding value in column B=1. The expected answer should be 2.
I tried 2 formulas:
1. =sumproduct(--(A1:A3),(B1:B3=1))
Result = #VALUE!
2. =sumproduct(A1:A3,B1:B3=1)
Result = 0
Can you please tell me where I've gone wrong?
Melissa
I am using Excel 2007.
In cells A1: A3, I have the values A, B, C.
In cells B1:B3, I have the values 1, 2, 1.
I want to count the number of cells in column A where its corresponding value in column B=1. The expected answer should be 2.
I tried 2 formulas:
1. =sumproduct(--(A1:A3),(B1:B3=1))
Result = #VALUE!
2. =sumproduct(A1:A3,B1:B3=1)
Result = 0
Can you please tell me where I've gone wrong?
Melissa