BeginnerBob
05-12-2004, 11:28 AM
OK
I have 2 colums (in A and B) such as
live 20
dead 20
live 30
dead 50
live 40
I can calculate how many are alive by the formula ={SUM(IF(A1:A6="live",B1:B6,0))} - this is not the problem.
My problem is that I have anther set of data which I want to count. My data (for example is as follows (In column A and B).
1 2
2 3
3 4
4 5
5 6
I want to use an aggregated formula to count how many records are above or equal to 2 in column A and less than or equal to 5 in column B - the answer is 3. However, my formala doesn't work. I've tried ={COUNT(IF(AND(A1:A6>=2,B1:B6<=5),B1:B6,0))} but to no success.
Can anyone help?
Thanks
Bob.
I have 2 colums (in A and B) such as
live 20
dead 20
live 30
dead 50
live 40
I can calculate how many are alive by the formula ={SUM(IF(A1:A6="live",B1:B6,0))} - this is not the problem.
My problem is that I have anther set of data which I want to count. My data (for example is as follows (In column A and B).
1 2
2 3
3 4
4 5
5 6
I want to use an aggregated formula to count how many records are above or equal to 2 in column A and less than or equal to 5 in column B - the answer is 3. However, my formala doesn't work. I've tried ={COUNT(IF(AND(A1:A6>=2,B1:B6<=5),B1:B6,0))} but to no success.
Can anyone help?
Thanks
Bob.